|
@@ -1,9 +1,26 @@
|
1
|
1
|
/**
|
2
|
2
|
* Created by iyasuwatts on 10/17/17.
|
3
|
3
|
*/
|
|
4
|
+
|
|
5
|
+import java.util.Scanner;
|
|
6
|
+
|
4
|
7
|
public class Main {
|
5
|
8
|
|
6
|
9
|
public static void main(String[] args ){
|
|
10
|
+ Scanner input = new Scanner(System.in);
|
|
11
|
+ System.out.println("Enter your name.");
|
|
12
|
+ String name = input.next();
|
|
13
|
+ //String name2 = input.next();
|
|
14
|
+
|
|
15
|
+ if(name.equals("Alice")){
|
|
16
|
+ System.out.println("Hi Alice!");
|
|
17
|
+ } else if(name.equals("Bob")){
|
|
18
|
+ System.out.println("Hi Bob!");
|
|
19
|
+ } else {
|
|
20
|
+ System.out.println(name + ", I don't know you!");
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+ //System.out.println("Number 2's name is " + name2);
|
7
|
24
|
|
8
|
25
|
}
|
9
|
26
|
}
|