forked from League-Archive/IntroToJavaWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAwesomeOrNot.java
More file actions
33 lines (16 loc) · 699 Bytes
/
AwesomeOrNot.java
File metadata and controls
33 lines (16 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package section4;
import java.util.Random;
public class AwesomeOrNot {
// 1. Make a main method that includes all the steps below…
// 2. Make a variable that will hold a random number and put a random number into this variable using "new Random().nextInt(4)"
// 3. Print out this variable
// 4. Get the user to enter something that they think is awesome
// 5. If the random number is 0
// -- tell the user whatever they entered is awesome!
// 6. If the random number is 1
// -- tell the user whatever they entered is ok.
// 7. If the random number is 2
// -- tell the user whatever they entered is boring.
// 8. If the random number is 3
// -- write your own answer
}