Eclipse (& Java Tools)

Installing Eclipse

Setting up Eclipse

Anatomy of Hello World (part 1)

	public class Hello {  // This is the class declaration
		public static void main(String[] args) {
			System.out.println("Hello world!");
		}
	}
	

Anatomy of Hello World (part 2)

	public class Hello {  // This is the class declaration
		public static void main(String[] args) { // This is the main method declaration
			System.out.println("Hello world!");
		}
	}
	

Anatomy of Hello World (part 3)

	public class Hello {  // This is the class declaration
		public static void main(String[] args) {// This is the main method declaration
			System.out.println("Hello world!");
			
			/* System is a class.
			   Out is a static member of type PrintStream.
			   println is a method of the PrintStream class. */
		}
	}

Questions?