Skip to content

Instantly share code, notes, and snippets.

@BalicantaYao
Created March 18, 2018 08:36
Show Gist options
  • Save BalicantaYao/b8e88ec65e55d61ebf927e759008b955 to your computer and use it in GitHub Desktop.
Save BalicantaYao/b8e88ec65e55d61ebf927e759008b955 to your computer and use it in GitHub Desktop.
1. 接收使用者輸入的數,直到使用者輸入 -1 為止,並將使用者過去輸入的數,全部一起於一列印出,並用空白分開。
- Scanner, nextInt
- ArrayList - 使用者輸入的數字存在這
- 透過 for 印出
2. 電腦產生 7 個 1 - 42 的亂數,並不得重覆。
- Random
- HashSet
@JasonSupper
Copy link

JasonSupper commented Mar 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment