Created
March 18, 2018 08:36
-
-
Save BalicantaYao/b8e88ec65e55d61ebf927e759008b955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 接收使用者輸入的數,直到使用者輸入 -1 為止,並將使用者過去輸入的數,全部一起於一列印出,並用空白分開。 | |
- Scanner, nextInt | |
- ArrayList - 使用者輸入的數字存在這 | |
- 透過 for 印出 | |
2. 電腦產生 7 個 1 - 42 的亂數,並不得重覆。 | |
- Random | |
- HashSet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/claire1220/96b14d8aa799db580f2face54503383d