-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStopKen.java
79 lines (53 loc) · 1.92 KB
/
StopKen.java
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import java.util.Scanner;
import javax.swing.JOptionPane;
public class StopKen {
boolean KenWantsToBeASoundCloudRapper = true;
int annoyance = 0;
public static void main(String[] args) {
// TODO Auto-generated method stub
Object[] options = {"No","No","No"};
int n = JOptionPane.showOptionDialog(null,
"Should Kenichi become "+
"a SoundCloud rapper?\n" + " "
+ "(The choice is clear.)","Kenichi is a meme.",
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[2]);
Scanner s = new Scanner(System.in);
System.out.println("Does Kenichi want to be a SoundCloud Rapper?");
String first = s.nextLine();
if (first.contains("yes")) {
System.out.println("How annoying is Kenichi on a scale of 1-10?");
System.out.println("10 being VERY annoying. 1 being not at all.");
int next = s.nextInt();
if (next>10) {
System.out.println("TOO BAD KEN. STOP TRYNA BE A RAPPER.");
}
if(next >= 7 && next <=10) {
System.out.println("Ken should stop trying to be a SoundCloud rapper.");
System.out.println("Please sign our petition: www.change.org/p/kenichi-himself-stop-kenichi-from-trying-to-be-a-soundcloud-rapper?recruiter.");
}
if (next>=4 && next<7) {
System.out.println("Block Kenichi. He still can't be a SoundCloud rapper.");
}
if (next<4) {
System.out.println("Wow. You must really like Ken. Is your name April?");
Scanner a = new Scanner(System.in);
String april = a.nextLine();
if (april.contains("yes")) {
System.out.println("WOW. GOOD FOR KEN!");
}
if (april.contains("no")) {
System.out.println("Oof. Sad life for Ken. ");
}
}
}
}
public void blockKen() {
if (KenWantsToBeASoundCloudRapper) {
annoyance++;
}
}
}