Skip to content

Instantly share code, notes, and snippets.

@claire1220
Created March 24, 2018 16:35
Show Gist options
  • Save claire1220/96b14d8aa799db580f2face54503383d to your computer and use it in GitHub Desktop.
Save claire1220/96b14d8aa799db580f2face54503383d to your computer and use it in GitHub Desktop.
20180318HW
/*1. 接收使用者輸入的數,直到使用者輸入 -1 為止,並將使用者過去輸入的數,全部一起於一列印出,並用空白分開。
- Scanner, nextInt
- ArrayList - 使用者輸入的數字存在這
- 透過 for 印出*/
public class PrintKeyin{
public static void main(String args[]){
}
}
/*2. 電腦產生 7 個 1 - 42 的亂數,並不得重覆。
- Random
- HashSet */
public class RandomSeven{
public static void main(String args[]){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment