s9326311.blogspot.com
Java物件導向程式設計: 十一月 2005
http://s9326311.blogspot.com/2005_11_01_archive.html
Homework Lab 11-21 (2) Class Definition. Package project4 2;. Import java.io.BufferedReader;. Import java.io.InputStreamReader;. Import java.io.IOException;. Public String month;. Public int day;. Public int year;. Public void readInput()throws IOException. System.out.println("Please enter month.(Ex:Jan, Feb.)");. BufferedReader keyinMonth = new BufferedReader(new InputStreamReader(System.in) ;. Month = keyinMonth.readLine();. System.out.println("Please enter day.");. Package project4 2;. 6 17, 2005)*/.
s9326311.blogspot.com
Java物件導向程式設計: 十月 2005
http://s9326311.blogspot.com/2005_10_01_archive.html
當 = = 遇上基本型態,則為判別內容是否相等。 當 = = 遇上Obiect,則為判別兩者的Address是否相等。 Public static void main(String[] args). String s1="I come from CYCU. String s2="I come from cycu. System.out.println("s1 = " s1 " ns2 = " s2 " ns1 equals s2? Nthe answer is " s1.equals(s2). Package comparestring;public class CompareString. Public static void main(String[] args). String s1="I come from CYCU. String s2="I come from CYCU. System.out.println("s1 = " s1 " ns2 = " s2 " ns1 equals s2? Nthe answer is " s1.equals(s2). Double r,num1=1,num...
s9326311.blogspot.com
Java物件導向程式設計: 九月 2005
http://s9326311.blogspot.com/2005_09_01_archive.html
Public static void main(String[] args). Double mouseweight=0.500;. Double dieterweight=100.000;. System.out.println(" nAnyone loses 0.02 kg if drinking 100 c.c. soda, and will die if losing the weight over 60%. n");. System.out.println("Now a mouse has " mouseweight " kg. nIt will die if it loses over " mouseweight*0.6 " kg.");. System.out.println("That is it can't drink over " mouseweight*0.6/0.02*100 " c.c. soda. n");. Now a mouse has 0.5 kg. It will die if it loses over 0.3 kg. 乖乖 小Java.( 摸摸頭). 並不是直接編...
s9326311.blogspot.com
Java物件導向程式設計: 一月 2006
http://s9326311.blogspot.com/2006_01_01_archive.html
Posted by Aclose at 11:03:00 下午. Posted by Aclose at 6:56:00 下午. Lab 1-02-2006 modular sorting. Posted by Aclose at 5:10:00 下午. Posted by Aclose at 6:31:00 下午. È å ç ç é (Java). Lab 1-02-2006 modular sorting. Homework 12-19-2005 Lab Equal Arrays. Homework 12-12-2005 Counter II. Lab 12-12-2005 (2) Static Class.
s9326311.blogspot.com
Java物件導向程式設計: 十二月 2005
http://s9326311.blogspot.com/2005_12_01_archive.html
Public static void main(String[] xxx). System.out.println(xxx[0] " " xxx[2] xxx[1]);. Posted by Aclose at 8:59:00 下午. Posted by Aclose at 6:09:00 下午. Homework 12-19-2005 Lab Equal Arrays. Posted by Aclose at 1:12:00 上午. Public void setNumber(int r, int i). Private Complex number;. Public void setNumber(int r,int i). Posted by Aclose at 8:34:00 下午. Homework 12-12-2005 Counter II. Posted by Aclose at 1:00:00 下午. Lab 12-12-2005 (2) Static Class. Posted by Aclose at 11:42:00 下午. Posted by Aclose at 9:04:00 下午.
s9326338.blogspot.com
Java: 2005-11-27
http://s9326338.blogspot.com/2005_11_27_archive.html
星期一, 11月 28, 2005. Homework Lab 11-21 (2) Class Definition. Import java.io.*;. Private String month;. Private int day;. Private int year;. Public void readInput()throws IOException. System.out.println("Enter month.(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)");. BufferedReader keyinMonth = new BufferedReader(new InputStreamReader(System.in) ;. Month = keyinMonth.readLine();. System.out.println("Enter day.");. Day = Integer.parseInt(keyinDay.readLine() ;. Import java.io.IOException;. Int e...
s9326338.blogspot.com
Java: 2005-12-04
http://s9326338.blogspot.com/2005_12_04_archive.html
星期一, 12月 05, 2005. Lab 12-5-2005 (1) Using "this". Import java.io.*;. Private String month;. Private int day;. Private int year;. Public void setDate(int month ,int day,int year). Thisday = day;. Thisyear = year;. Thismonth = monthString(month);. Return (month " " day ", " year);. System.out.println(month " " day ", " year);. Public boolean equals(DateFourthTry otherDate). Return (month.equals(otherDate.month) & amp;amp; day = (otherDate.day) & year = (otherDate.year) ;. Else if (month.equals("Feb").
s9326338.blogspot.com
Java: 2005-10-16
http://s9326338.blogspot.com/2005_10_16_archive.html
星期一, 10月 17, 2005. Public static void main (String[] args). Double tax,fivePercentTax,tenPercentTax,netincome=18900;. System.out.println("Enter net income=" netincome);. Tax=(0.05*(netincome-15000) ;. Posted by hamoo at 9:35 下午. Import java.io.BufferedReader;. Import java.io.InputStreamReader;. Import java.io.IOException;. Public static void main(String[] args) throws IOException. BufferedReader keyboard= new BufferedReader(new InputStreamReader(System.in) ;. Posted by hamoo at 8:44 下午.
s9326338.blogspot.com
Java: 2005-09-18
http://s9326338.blogspot.com/2005_09_18_archive.html
星期四, 9月 22, 2005. 1 Explain bytecode, JVM. 也就是給於 JVM 的指令 反過來說,JVM 就是 ByteCode 的解譯程式. JAVA 的原始程式碼 (.java) 經由編譯後產生的類別檔 (.class). 但是所有的 JVM 都能執行 JAVA 的 ByteCode. JVM 是用來執行 Java 程式。 JVM 有許多平台的版本,比方說 Linux 和. 註 JVM 是一個虛擬機器,而 bytecode 可以看成是這個虛擬機器的機器. Bytecode 總共定義了 202 個指令,這些指令範圍相當廣泛,除了包. 還定義了跟物件( Object )、例外( Exception )以及執行緒. 在 JVM 中,有個 bytecode 直譯器. Http:/ www.javaworld.com.tw/confluence/display/JDictionary/ByteCode. Http:/ www.javaresearch.org/word/word.jsp? Http:/ 64.233.167.104/search? Print 2 * (i );.