CODSTA.PML
Put the `main()' method last
Description
This rule flags code where the `main()' method is not last item in the class definition.
This rule makes the program comply with various coding standards regarding the form of class definitions.
Example
package CODSTA;
class PML {
public static void main (String args[]) {
}
void foo () {
}
}
Repair
List method `main()' last within the "class" definition.
|