Hello World and Onwards

Here is the Hello World class in Java. Once you type it into Dr Java hit F5 to compile and then F2 to run the program. The output appears below in the Console.



Next you will need to look for a set of tutorials to learn basic Java.

Codeacademy.org has some great resources including a 25 hour fundamentals course. You don't need to install an IDE for these but you will need to make yourself an account.

You can also download the ICS4MPU1.zip file. Unzip and you will have a complete introduction to Java unit that includes

  1. Hello World

  2. Variables and constants

  3. Input/Output

  4. Repetition

  5. Selection

  6. Random Numbers

  7. Methods

  8. Arrays

  9. Sorting

  10. Files

Click on the Unit Overview file and go from there to the individual lessons.

W3 Schools Java Tutorials


public class HelloWorld {


public static void main(String[] args) {

// TODO Auto-generated method stub

System.out.println("Hello World! Finally!");

}


}