Oh.
java - is the command to run a java program. First you must use javac [file] then java [file] (but with no extension. javac will produce a .class file which is then runable. Here is an example...
Type: Posts; User: Freaky Chris
Oh.
java - is the command to run a java program. First you must use javac [file] then java [file] (but with no extension. javac will produce a .class file which is then runable. Here is an example...
Welcome to Java Programming Forums.
I hope you enjoy it here :)
Anyway to your problem. You must name your file "PriorityDemo.java" to match the name of your main class.
Also I have changed the...