|
@@ -1,9 +1,28 @@
|
1
|
1
|
/**
|
2
|
2
|
* Created by iyasuwatts on 10/17/17.
|
3
|
3
|
*/
|
|
4
|
+import java.util.*;
|
4
|
5
|
public class Main {
|
5
|
6
|
|
6
|
7
|
public static void main(String[] args ){
|
|
8
|
+ Scanner sc = new Scanner (System.in);
|
|
9
|
+ System.out.println("What is your name?");
|
|
10
|
+ String name = sc.nextLine();
|
|
11
|
+
|
|
12
|
+ if (name.equals ("Alice")|| name.equals("alice")){
|
|
13
|
+ System.out.println("Hello Alice!");
|
|
14
|
+
|
|
15
|
+ }
|
|
16
|
+ else if (name.equals ("Bob")|| name.equals("bob")){
|
|
17
|
+ System.out.println("Hello Bob!");
|
|
18
|
+ }
|
|
19
|
+ else {
|
|
20
|
+ System.out.println("You are not Alice or Bob!!!!!");
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
7
|
26
|
|
8
|
27
|
}
|
9
|
28
|
}
|