forked from League-Archive/IntroToJavaWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnooper.java
More file actions
27 lines (21 loc) · 1.08 KB
/
Snooper.java
File metadata and controls
27 lines (21 loc) · 1.08 KB
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
package day3;
import javax.swing.JOptionPane;
public class Snooper {
public static void main(String[] args) {
String name=JOptionPane.showInputDialog(null, "What's your name?");
String age=JOptionPane.showInputDialog(null, "How old are you?");
String location=JOptionPane.showInputDialog(null, "Where do you live?");
JOptionPane.showMessageDialog(null, "I'm watching you, " + name);
JOptionPane.showMessageDialog(null, "You can't hide,");
JOptionPane.showMessageDialog(null, "All of your information is being studied,");
JOptionPane.showMessageDialog(null, "You will be trapped at this screen,");
JOptionPane.showMessageDialog(null, "Look");
JOptionPane.showMessageDialog(null, "Outside");
JOptionPane.showMessageDialog(null, ":)");
JOptionPane.showMessageDialog(null, "Still not gone?");
JOptionPane.showMessageDialog(null, "I suggest you leave "+name);
JOptionPane.showMessageDialog(null, "Before you know, it's too late");
String yes=JOptionPane.showInputDialog(null, "Will you leave? Yes or No?");
Runtime r = Runtime.getRuntime();
}
}