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