Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA216      CA249      CA318

CA400      CA651      CA668


Java start




Use in DCU (Win and Linux)



Use in DCU (Win)



Use on your own machine    

If you want to install on your own machine:
  1. Download Java Development Kit (JDK)
  2. JDK install instructions
If you are on Windows:
  1. Just run the downloaded EXE to install.
  2. Add this to PATH:
     C:\Program Files\Java\VERSION\bin 
    


To change PATH on Win



To write a Java program



What to write code in

Any text editor will do, but you may prefer an IDE.
Some of these installed at DCU. Some not.




"Hello World" program

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

    for ( int i=0; i < args.length; i++ ) 
      { System.out.println ( args[i] ); }
  }
}





Java programs




Books



Feeds      w2mind.org

On Internet since 1987.