FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

Writing your first Java Program




In writing your first java program, you need to prepare the following:
1. Java SDK which can be found in the java official website.
2. Java IDE which any of the following:
a. Dr. Java
b. Eclipse
C. Netbeans
3. java codes

If you already downloaded the tools you need, do the following
1. install the java sdk
2. install the java ide
3. write your code.

here's the code
Assume we want to print hello world in the screen
save the file as hello.java

//---------------------------------------------------------
public class hello {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
//---------------------------------------------------------

compile and run the program using the java ide

enjoy Smile



0 blog comments below




FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.