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