s9226355.blogspot.com
java: 十一月 2005
http://s9226355.blogspot.com/2005_11_01_archive.html
星期一, 11月 28, 2005. Import javax.swing.JOptionPane;. Public class DateFirstTry {. 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){day=newDay;. Year=newYear; month=monthString(newMonth);. Case 1: return "January";. Else if(m...
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有作...
s9226355.blogspot.com
java: 九月 2005
http://s9226355.blogspot.com/2005_09_01_archive.html
星期三, 9月 28, 2005. Public static void main(String[] args). Int running6MPH=10*30,basketball=8*30,sleeping=1*6*60;. Int MET=running6MPH basketball sleeping;. Double weight=150/2.2;. Double answer=0.0175*MET*weight;. System.out.println("The total number of calories = " answer);. Posted by 寶貝老婆的寶貝老公 @ 12:03 下午. Public static void main(String[] args). Double mouseLossWeight=0.01;. System.out.println("The mouse is " mouseWeight "kg.");. System.out.println("A person is " startingWeight "kg.");. 星期一, 9月 26, 2005.
s9226355.blogspot.com
java: 十二月 2005
http://s9226355.blogspot.com/2005_12_01_archive.html
星期一, 12月 26, 2005. Public class equal {. Public static boolean equal(int a[],int b[]). Blength) {return false;}. Else{ int i=0;. B[i]) { return false; }. Public static void main(String[] args). Int[] a={1,9,6,4,0,2,1,2};. Int[] b={1,9,6,4,0,2,1,2};. System.out.print("a={ ");. System.out.print(a[k] " ");. System.out.println("}");. System.out.print("b={ ");. System.out.print(b[k] " ");. System.out.println("}");. System.out.println("a and b are equal.");}. Posted by 寶貝老婆的寶貝老公 @ 5:25 下午. Private double real;.
s9226337.blogspot.com
java: 九月 2005
http://s9226337.blogspot.com/2005_09_01_archive.html
星期二, 9月 27, 2005. 是因為沒有在玩EQ2了 就有閒來做了 . . Posted by Jimmy @ 8:34 下午. Public class homework03 {. Public static void main(String[] args). Int Running=10 , Basketball=8 , Sleeping=1 ;. Double Weight ;. Weight = 150/2.2 ;. Double R Cal , B Cal , S Cal , T Cal;. R Cal = 0.0175*Running*Weight*30;. B Cal = 0.0175*Basketball*Weight*30;. S Cal = 0.0175*Sleeping*Weight*60*6;. T Cal = R Cal B Cal S Cal ;. System.out.println("One person runs for 30 mins, plays basketball for 30 mins, sleeps for 6 hrs.");. 有鑑於此, 美國史丹...
s9226337.blogspot.com
java: 十月 2005
http://s9226337.blogspot.com/2005_10_01_archive.html
星期一, 10月 31, 2005. Import javax.swing.JOptionPane;. Public class Lab {. Public static void main(String[] args){. Int a=1,n=1;. String number = JOptionPane.showInputDialog("Enter a number for n :");. N = Integer.parseInt(number);. System.out.println("product = " a);. Posted by Jimmy @ 9:12 下午. From http:/ www.math.ncu.edu.tw/ wanggz/math.html. Posted by Jimmy @ 7:08 下午. Public static void main(String[] args){. Double temp=0,a=1,N=0,ratio=0;. For (int i=0;i. N = a temp;. Ratio = N/a;. Temp = a;. Else if ( 0.