|
@@ -1,9 +1,26 @@
|
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
|
+
|
|
9
|
+
|
|
10
|
+ Scanner in= new Scanner(System.in);
|
|
11
|
+ System.out.println("What is your name?");
|
|
12
|
+ String name= in.nextLine();
|
|
13
|
+ if (name.equals( "Bob"))
|
|
14
|
+ {
|
|
15
|
+ System.out.println("Hello Bob");
|
7
|
16
|
|
8
|
17
|
}
|
|
18
|
+ else if(name.equals ("Alice"))
|
|
19
|
+ {
|
|
20
|
+ System.out.println("Hello Alice");
|
|
21
|
+ }
|
|
22
|
+ else {
|
|
23
|
+ System.out.println("You are not Alice and Bob");
|
|
24
|
+}
|
9
|
25
|
}
|
|
26
|
+}
|