Answer to Question #4563 in Java | JSP | JSF for dayo

Question #4563
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!");
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal