|
@@ -1,9 +1,15 @@
|
1
|
|
-/**
|
2
|
|
- * Created by iyasuwatts on 10/17/17.
|
3
|
|
- */
|
|
1
|
+import java.util.Scanner;
|
|
2
|
+
|
4
|
3
|
public class Main {
|
5
|
4
|
|
6
|
5
|
public static void main(String[] args ){
|
7
|
|
-
|
|
6
|
+ Scanner in = new Scanner(System.in);
|
|
7
|
+ System.out.print("What is your name?");
|
|
8
|
+ String name = in.nextLine();
|
|
9
|
+ String alice = "Alice";
|
|
10
|
+ String bob = "Bob";
|
|
11
|
+ if (name.equalsIgnoreCase(alice) || name.equalsIgnoreCase(bob)) {
|
|
12
|
+ System.out.println("Hi " + name + ", welcome to my program.");
|
|
13
|
+ }
|
8
|
14
|
}
|
9
|
15
|
}
|