|
@@ -1,9 +1,20 @@
|
1
|
1
|
/**
|
2
|
2
|
* Created by iyasuwatts on 10/17/17.
|
3
|
3
|
*/
|
|
4
|
+import java.util.Scanner;
|
4
|
5
|
public class Main {
|
5
|
6
|
|
6
|
7
|
public static void main(String[] args ){
|
7
|
|
-
|
|
8
|
+ Scanner scan = new Scanner(System.in);
|
|
9
|
+
|
|
10
|
+ System.out.println("What is your name?");
|
|
11
|
+ String name = scan.nextLine();
|
|
12
|
+
|
|
13
|
+ if (name.equalsIgnoreCase("Alice"))
|
|
14
|
+ System.out.println("Hello Alice!");
|
|
15
|
+ else if (name.equalsIgnoreCase("Bob"))
|
|
16
|
+ System.out.println("Hello Bob");
|
|
17
|
+ else
|
|
18
|
+ System.out.println("Okay");
|
8
|
19
|
}
|
9
|
20
|
}
|