Your first impression of this program is probably "This is really long just to display a line of text." While this may be true compared to other programming languages, this program shows a lot about the Java programming language, way beyond simply displaying a line of text. Remember that Java is case-sensitive, so even when you compile your program, you have to make sure you are typing in the file name exactly.Ĭompiling the program will produce the file HelloWorld.class, the JVM version of your program. Compile the program using the command javac HelloWorld.java. to go up one directory) to navigate to the directory where HelloWorld.java was saved. Go to your console window (in Windows, go to the start menu and click "run", then type "cmd.exe" in Linux, open a terminal). Type this program up in your text editor and save it as HelloWorld.java. Public class HelloWorld Compiling the Program
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |