Java Hello World to pass CheckStyle

Viewed 415

So I'm new to using checkstyle and for my simple HelloWorld java program, I'm receiving a lot of errors I don't understand.

My code:

package <package_name>;

/**
* A simple class to compile.
*/
public class HelloWorld {

 /**
  * @param args standard main parameters
  */

    public static void main(String[] args) {
        System.out.println("hello world");
    }
}

I'm receiving the errors:

Line 6: Utility classes should not have a public or default constructor
Line 10: Parameter args should be final

Why is this occurring? Is it necessary for me to create a private constructor for my main class and make the default arguments final?

3 Answers
Related