hi,my name is dayo.i am new to java programming i am bout to write my first program which i copied from a textbook i am reading.
// A program to display the message
// "Hello World!" on standard output
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
} // end of class HelloWorld
but the compiler is giving an error system.out.print class.the compiler made a suggestion 1 should be a package class before it can be used by the compiler.pls i do i go about it.thank you.
1
Expert's answer
2012-04-03T11:06:39-0400
public class Main {
public static void main(String[] args) { System.out.println("Hello World!"); }
Comments
Leave a comment