re commit
This commit is contained in:
@@ -20,7 +20,14 @@ public class PTra04_02 {
|
|||||||
// num++;
|
// num++;
|
||||||
num *=2;
|
num *=2;
|
||||||
System.out.println(num);
|
System.out.println(num);
|
||||||
|
if (num>1000) {
|
||||||
|
System.out.println("終了");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,10 @@ public class PTra07_05 {
|
|||||||
|
|
||||||
// 0~4のランダムな整数を作成しています
|
// 0~4のランダムな整数を作成しています
|
||||||
int random = new Random().nextInt(5);
|
int random = new Random().nextInt(5);
|
||||||
|
//String name = int random;
|
||||||
|
|
||||||
// TODO 配列arrayから変数randomが示す要素を出力してください
|
// TODO 配列arrayから変数randomが示す要素を出力してください
|
||||||
|
System.out.println(random);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user