Class Setup
NOTE: This page / space is still a work in progress.
There are multiple requirements for setting up your java file and class:
Default Package
The java class must be part of the default package and should not have a package statement. Failure to do this will likely cause your code to not work with the grading scripts and get a 0 for correctness.
You can read more about java packages here.
Good Style | Bad Style |
Correct Default Packagepublic class Circle {
...
}
|
Incorrect Packagepackage abc;
public class Circle {
...
}
|
|---|