2007年11月30日 星期五

Class Definition 3

4.7 4.8

Question : In Display 4.7, if 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?

Homework 11/16/2007: lab class definition 2


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);
"錯誤執行!!!" 因為privte是私密內容,將之改成public即可

2007年11月25日 星期日

2007年11月16日 星期五

2007年11月9日 星期五