9 Oct 2006 Attendance: NJ, KT, SW IC emailed to Isabelle, MM made a mistake about the venue. 1. Time: 5 minutes past the hour -- 5 minutes to the hour 2. Introduced each other 3. Ida explained how the tutorials work. 4. How to learn programming: distinguish a) syntax of Java language b) design a program which is an ordered set of instructions 5. Write done the new commands/ instructions learnt from the lectures no one could remember 6. Learn new statements: System.out.println(); System.out.println("x"); System.out.println(35/3); System.out.println(35/2.0); System.out.println("x="+(35+2)); System.out.print("x"); System.out.print(35/3); System.out.print(35/2.0); System.out.print("x="+(35+2)); System.out.print("35/3="); System.out.println(35/3.0); 7. Learn the structure of Java: class HellowWorld { public static void main(String [] args) { System.out.println("x"); } } 8. Write a program to print out on paper: a) `My name is xx' b) `My name is xx', 3 times in three lines c) `My name is xx', 3 times in one lines 9. Type in the program using TexPad 10. Compile 11. Run application 12. Note: a) Java is case sensitive, so `System' is different from `system'. b) file name has to be the same as the class name. c) the file name can only have 1 `.java' extension. Error occurs if use a file name with double extension, such as `x.java.java'. 13. Add comments 14. Learn new statements: for (int i=0; i