The simplest way is from a command line in your DOS console make sure you change directory to the directory your class / java files are in then type: java whatevereFileName <enter>. EG. C:\javaProjects\Testing> java myTestFile <enter> Case is important. Are you familiar with DOS 'cd' command?
hi Rupinder Which Operating System you use? If you use Unix system, you can choose the console to display the statement which you use the System.out.println("") to print it out. And I agree subhit that can use it to debug in some situations. System.out.println("") default output is in console
Joined: Jun 20, 2002
For application prog. its command prompt in windows... but for applets its java console.. No idea about Unix