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?

*month被定義為只有自己可以呼叫自己,所以再另一個程式裡無法呼叫
沒有留言:
張貼留言