1234567891011121314151617181920212223 |
- /**
- * Created by iyasuwatts on 10/17/17.
- */
-
- import java.util.*;
- public class Main {
-
- public static void main(String[] args ){
- Scanner userInput = new Scanner(System.in);
- System.out.println("Hello, what is your name?");
- String name = userInput.nextLine();
- if (name.equals("Alice")||name.equals("alice")) {
- System.out.println("Hello Alice");
- } else if (name.equals("Bob")||name.equals("bob")) {
- System.out.println("Hello Bob");
- }else {
- System.out.println("Where is Alice and Bob");
- }
- //System.out.println(name);
-
- }
- }
|