Created
March 24, 2018 16:35
-
-
Save claire1220/96b14d8aa799db580f2face54503383d to your computer and use it in GitHub Desktop.
20180318HW
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 印出*/ | |
public class PrintKeyin{ | |
public static void main(String args[]){ | |
} | |
} |
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
/*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