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