2008年6月27日 星期五

期末報告

第一本書:Java 2物件導向程式語言(位元文化 編著)
出版社:文魁資訊股份有限公司
出版日期:2005年6月初版1刷
1.為何挑選:想多練習字串改變用法等
2.概念:藉由一個程式的執行,改變原來的字串,得到一個新的字串。
3.結果說明:


第二本書:Java物件導向與資料結構 (詹鎮熊 譯)
出版社:碁峰資訊股份有限公司
出版日期:2002年11月初版
1.為何挑選:矩陣算是一個基本實用需要練習的題目
2.概念:建立矩陣時,需指定陣列長度至於建立包含子陣列的列陣,則要先設定主 要陣列長度;而個子陣列的長度,要在建立子陣列同時,再行設定。
3.結果說明:


2008年6月16日 星期一

2008年6月15日 星期日

2008年6月2日 星期一

2008年5月26日 星期一

2008年5月19日 星期一

lab Fraction equality test




lab Fraction Addition




Class Definition 3


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?



lab counter




2008年4月28日 星期一

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();



4. At the last line of your program, add System.out.println(date.month);and see what happens. Why?
由於前面的類別宣告為private的關係,private具有保密的作用,
而不讓user任意查看資料內容,所以程式才會發生錯誤.

lab class definition


2008年4月13日 星期日

2008年3月24日 星期一

2008年3月23日 星期日

Homework 3-17-2008

Project 1 of Chap. 2
Project 3 of Chap. 2


Lab Keyboard input


2008年3月17日 星期一

2008年3月16日 星期日

Homework 3-10-2008: String Processing


Do Project 5 of Chap. 1 on Page 56.Write a program that starts with a line of text and then outputs that line of text with the first occurrence of "hate" changed to "love". For example, a possible sample output might beThe line of text to be changed is:I hate you.I have rephrased that line to read:I love you.Hint: You may consider use the methods: indexOf(A_String) and substring(Start, End) in your program.


2008年3月3日 星期一

2008年2月25日 星期一

== my blog ==

嗨~

大家好~