星期一, 11月 27, 2006

Java Overloading

Study Display 4.11 and use Display 4.12 to call 4.11. (2nd ed.)

Study Display 4.9 and use Display 4.10 to call 4.9 (1st ed.)

Lab Class Definitions III

Do Display 4.7 (2nd ed.) or 4.5 (1st ed.). Then use Display 4.8 to call 4.7.

Requirements
1. The method setDate has the parameter as setDate(int month, int day, int year).
What kind of changes should be made in its body of codes?

星期一, 11月 20, 2006

Lab Class Definitions II

Study Display 4.2 & Display 4.4 (2nd ed.) or Display 4.2 & Display 4.3 (1st ed.) and then
1. comment out date.setDate(6, 17, year); by // date.setDate(6, 17, year);
2. At the next line below, add date.readInput();
3. Run the program again. Fix any problems you may encouter along the way.
4. At the last line of your program, add System.out.println(date.month);
and see what happens. Why?

星期一, 11月 06, 2006

Lab Class Definition

Study Display 4.1 and then do Exercise 1.

Java 2

Java 2 分成 Java 2 Platform Enterprise Edition(簡稱 J2EE)、Java 2 Platform Standard Edition(簡稱 J2SE)、Java 2 Platform Micro Edition(簡稱 J2ME)。J2EE 適用於伺服器,目前已經成為企業運算、 電子商務等領域中相當熱門的技術;J2SE 適用於一般的電腦;J2ME 適用於消費性電子產品。