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