Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


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



ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.      New 250 G VPS server.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.