First you can write the program with the editor text like notepad. Save it with HalloWorld.java.
//File : HalloWorld.java
//Writer : Chrifto M Sepang
//Date : Nophember 8 2008
//Description : This program display "Hallo World" statement.
public class HalloWorld {
public static void main (String[] args) {
System.out.println("Hallo World");
}
}
After you write this code compille it with command (in command prompt):
javac HalloWorld.java
And than run it use command (in command prompt):
java HalloWorld
This command will be display:
C:\JavaPractice> java HalloWorld
Hallo World
C:\JavaPractice>_
Langganan:
Posting Komentar (Atom)
1 komentar:
bee..
sakti skali torang pe tutor ini... share programming knowledge to others... keep writing nech......
ok.. dech...
ngana pe blog nanti kita kase link pa kita pe blog nech...
ok.. GBU
Posting Komentar