For this, we use the javac.exe compiler, which is included in the JDK.Įl número de serie del volumen es: 008E-DBB0 Java Compilerįor our class to be understood by the java virtual machine, it has to be compiled. Copy the text of the class within the editor and save in the javatest directory with the name "HelloWorld.java". To create HelloWorld.java, use notepad or any other plain text editor. It would also be advisable to create a directory in which to work. The class code, must be in a file, with the same name and Java class extension: "HelloWorld.java". JOptionPane.showMessageDialog(null, "Hello World") Use the showMessageDialog class method of the JOptionPane class to display an alert window that says "Hello World". The class HelloWorld, is executable since it has the necessary main method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |