|
@@ -1,9 +1,20 @@
|
|
1
|
+import java.util.Scanner;
|
1
|
2
|
/**
|
2
|
3
|
* Created by iyasuwatts on 10/17/17.
|
3
|
4
|
*/
|
4
|
5
|
public class Main {
|
5
|
6
|
|
6
|
|
- public static void main(String[] args ){
|
7
|
|
-
|
|
7
|
+ public static void main( ){
|
|
8
|
+ Scanner user_input = new Scanner( System.in );
|
|
9
|
+
|
|
10
|
+ System.out.print("What is your name? ");
|
|
11
|
+ String name = user_input.next();
|
|
12
|
+
|
|
13
|
+ if(name.equals("Bob") || name.equals("Alice")) {
|
|
14
|
+ System.out.println("Hello there " + name);
|
|
15
|
+ } else{
|
|
16
|
+ System.out.println("Im sorry I don\'t know you");
|
8
|
17
|
}
|
|
18
|
+
|
|
19
|
+}
|
9
|
20
|
}
|