|
@@ -1,9 +1,17 @@
|
1
|
1
|
/**
|
2
|
2
|
* Created by iyasuwatts on 10/17/17.
|
3
|
3
|
*/
|
4
|
|
-public class Main {
|
|
4
|
+import java.util.*;
|
5
|
5
|
|
|
6
|
+public class Main {
|
6
|
7
|
public static void main(String[] args ){
|
7
|
|
-
|
|
8
|
+ Scanner in = new Scanner(System.in);
|
|
9
|
+ System.out.print("Hey! What's your name?\n");
|
|
10
|
+ String name = in.next();
|
|
11
|
+ if (name.equalsIgnoreCase("Bob") || name.equalsIgnoreCase("Alice")) {
|
|
12
|
+ System.out.print("Welcome, " + name + "! It is good to see you.\n");
|
|
13
|
+ } else {
|
|
14
|
+ System.out.print(name + "??? Who are you? Bring me Bob or Alice.\n");
|
|
15
|
+ }
|
8
|
16
|
}
|
9
|
17
|
}
|