|
@@ -1,9 +1,33 @@
|
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
|
+ public String test;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+ public Main(String name){
|
|
11
|
+ test = name;
|
|
12
|
+ }
|
6
|
13
|
public static void main(String[] args ){
|
7
|
|
-
|
|
14
|
+ Scanner scan = new Scanner(System.in);
|
|
15
|
+ System.out.println("Enter your name");
|
|
16
|
+ String name = scan.nextLine();
|
|
17
|
+ if(name.equals("Alice")){
|
|
18
|
+ System.out.println("Hello Alice");
|
|
19
|
+ }
|
|
20
|
+ else if(name.equals("Bob")){
|
|
21
|
+ System.out.println("Hello Bob");
|
|
22
|
+ }
|
|
23
|
+
|
|
24
|
+ else
|
|
25
|
+ System.out.println("You are not worth my time");
|
|
26
|
+
|
|
27
|
+
|
8
|
28
|
}
|
9
|
|
-}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+ }
|
|
33
|
+
|