Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kent Hamilton   on Sep 11 In Java Category.

  
Question Answered By: Wilfred Young   on Sep 11

your class which has the main  method should have exactly the same
name wint your .java file

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

should be saved as HelloWorld.java

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread