|
@@ -1,9 +1,18 @@
|
|
1
|
+import java.util.*;
|
|
2
|
+
|
1
|
3
|
/**
|
2
|
4
|
* Created by iyasuwatts on 10/17/17.
|
3
|
5
|
*/
|
4
|
6
|
public class Main {
|
5
|
|
-
|
6
|
|
- public static void main(String[] args ){
|
7
|
|
-
|
|
7
|
+
|
|
8
|
+ public static void main(String[] args ) {
|
|
9
|
+ Scanner in = new Scanner(System.in);
|
|
10
|
+ System.out.println("Please enter your name.");
|
|
11
|
+ String name = in.nextLine();
|
|
12
|
+ if(name.equalsIgnoreCase("Alice") || name.equalsIgnoreCase("Bob")) {
|
|
13
|
+ System.out.println("Hello " + name + ". Nice to meet you!");
|
|
14
|
+ } else {
|
|
15
|
+ System.out.println("Sorry, " + name + " I'm looking for someone else.");
|
|
16
|
+ }
|
8
|
17
|
}
|
9
|
18
|
}
|