plz, i'm new to this Java. i've installed jDK 1.6 and configured the Environment Variable yet each time i compile and try to run a Hello World program in DOS, i get this message;
D:\javafiles>javac Helloworld.java
Helloworld.java:3: class HelloWorld is public, should be declared in a file name
d HelloWorld.java
public class HelloWorld {
^
1 error
here is the actual program;
Plz any help rendered will be highly appreciated.