s9226329x.blogspot.com
JAVA: 一月 2006
http://s9226329x.blogspot.com/2006_01_01_archive.html
星期三, 1月 04, 2006. Import java.io.*;. Public static int re(int n). If (n= 1n= 0)return 1;. Public static void main(String[] args)throws IOException. System.out.println("Enter a number:");. BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in) ;. Int num=Integer.parseInt(keyboard.readLine() ;. System.out.print("The Answer: n");. System.out.println(num "! Posted by sam at 1/04/2006 05:55:00 下午. 星期一, 1月 02, 2006. Public void main (String[] args). If(args.length = 0).
s9226329x.blogspot.com
JAVA: 十一月 2005
http://s9226329x.blogspot.com/2005_11_01_archive.html
星期一, 11月 28, 2005. Posted by sam at 11/28/2005 06:14:00 下午. Import javax.swing.JOptionPane;. Private String month;. Private int day;. Private int year;. System.out.println (month " " day " " year);. Month=JOptionPane.showInputDialog("Enter month");. String PString1=JOptionPane.showInputDialog("Enter day");. String PString2=JOptionPane.showInputDialog("Enter year");. Public void setDate(int newMonth ,int newDay,int newYear). Public String monthString(int monthNumber). Case 1: return "January";. System....
s9226329x.blogspot.com
JAVA: 十月 2005
http://s9226329x.blogspot.com/2005_10_01_archive.html
星期一, 10月 31, 2005. Import javax.swing.JOptionPane;. Public static void main(String[] args). String PString = JOptionPane.showInputDialog("Enter the n");. System.out.println(x);. Posted by sam at 10/31/2005 09:23:00 下午. 參考網站 http:/ www.mcs.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibnat.html. Posted by sam at 10/31/2005 07:11:00 下午. Public static void main(String[] args). Down=0,up=1,count=0,ratio=0;. For (int i=0;i. Ratio =count / up;. Down = up;. Up = count;. Posted by sam at 10/31/2005 05:32:00 下午.
s9226329x.blogspot.com
JAVA: 九月 2005
http://s9226329x.blogspot.com/2005_09_01_archive.html
星期五, 9月 30, 2005. Public static void main (String [] args). System.out.println("One person runs for 30 mins, plays basketball for 30 mins, sleeps for 6 hrs.");. Int R=10,B=8,S=1;. Double W=150/2.2,RC,BC,SC,TC;. TC= RC BC SC;. System.out.println("Running 6MPS for 30 minutes=" RC);. System.out.println("Plays basketball for30 minutes=" BC);. System.out.println("Sleeps for 6 hours=" SC);. System.out.println("Total=" TC);. Posted by sam at 9/30/2005 04:59:00 下午. 星期日, 9月 25, 2005. 星期六, 9月 24, 2005. 今天才知道java有作...
s9226329x.blogspot.com
JAVA: 十二月 2005
http://s9226329x.blogspot.com/2005_12_01_archive.html
星期一, 12月 26, 2005. Public static void main(String[] abc). System.out.println(abc[0] " " abc[2] " " abc[1]);. System.out.println("The length of parameter is " abc.length);. Posted by sam at 12/26/2005 09:05:00 下午. Import javax.swing.JOptionPane;. Public static void main(String args[]). Int[] m= new int[5];. System.out.println(m[i]);. Posted by sam at 12/26/2005 04:32:00 下午. Posted by sam at 12/26/2005 12:07:00 下午. Double a=0,b=0;. Public complex(double a,double b). Public void setComplex(double a,double b).