Description: Familiar with the installation and configuration of the JDK, learn how to write and run a simple Application procedures and Applet (can output a simple greeting message):
A. Editplus (or JCreator, Textpad) Environment write a HelloWorld.java procedures,
(1) is called in the main method static public void main (String [] args) System.out.println () method, the program outputs a greeting message
(2) compile and run the program, observe the operation and output results. (Using JDK environment, call the javac.exe and java.exe compile and execute the program)
Two. Under Editplus (or JCreator, Textpad) Environment write a HelloWorldApplet.java program.
G.drawString (1) public void paint (Graphics g) method call () method, the program outputs a greeting message
(2) compile and run the program, observe the operation and output results. (Using JDK environment, to call javac.exe compiled and interpreted by the browser to perform Applets)
To Search:
File list (Check if you may need any files):
experiment1\mainwork\HelloWorld.java
...........\........\HelloWorldApplet.java
...........\........\本Java程序设计实验要求.txt
...........\mainwork
experiment1