- 6月 09 週二 200922:20
逆猜數字老師最少行數版
- 6月 03 週三 200923:59
期末考試題目,第一二題
好一個NDSi宣傳(聽說裡面扣除電子儀器是用樂高組的)
第三題已經傳出去了,就省了(茶)
================================
import java.io.*;
- 6月 22 週日 200818:13
輸入前(後)序和中序求後(前)序
- 4月 02 週三 200800:11
inorderTraverse練習(中文忘了(倒))
- 3月 25 週二 200823:21
課本練習6-3

超級!霸王!電影彈!!!!
-------------------------------------------------------------------------------------------------
import java.io.*;
public class ex6_3{
public static void main(String[] alio)
throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("請輸入第一個整數:");
String str = br.readLine();
int i = Integer.parseInt(str);
System.out.println("請輸入第二個整數:");
String str2 = br.readLine();
int j = Integer.parseInt(str2);
int sum = 0;
if(i<j){
for(int x=i+1;x<j;x++){
sum += x;
}
}
else if(i>j){
for(int x=j+1;x<i;x++){
sum += x;
}
}
System.out.println(sum);
}
}
- 1月 10 週四 200821:05
實作 Runnable 介面
- 1月 10 週四 200820:54
演算法練習:多執行緒









