|
@@ -1,9 +1,24 @@
|
1
|
1
|
/**
|
2
|
2
|
* Created by iyasuwatts on 10/17/17.
|
3
|
3
|
*/
|
|
4
|
+import java.util.Scanner;
|
4
|
5
|
public class Main {
|
5
|
6
|
|
6
|
|
- public static void main(String[] args ){
|
7
|
|
-
|
|
7
|
+ public static void main(String[] args ){
|
|
8
|
+ Scanner in = new Scanner(System.in);
|
|
9
|
+ System.out.print ("What is your name");
|
|
10
|
+ String name = in.nextLine();
|
|
11
|
+ //String firstName = in.nextLine();
|
|
12
|
+ System.out.print(name);
|
|
13
|
+ if (name.equals("Alice")){
|
|
14
|
+ System.out.println(" Hey Alice");
|
|
15
|
+ } else if (name.equals("Bob")){
|
|
16
|
+ System.out.println(" Hey Bob");
|
|
17
|
+ } else {
|
|
18
|
+ System.out.println(" Why are you here");
|
|
19
|
+ }
|
8
|
20
|
}
|
|
21
|
+
|
9
|
22
|
}
|
|
23
|
+
|
|
24
|
+
|