Main.java 634B

1234567891011121314151617181920212223
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */
  4. import java.util.*;
  5. public class Main {
  6. public static void main(String[] args ){
  7. Scanner userInput = new Scanner(System.in);
  8. System.out.println("Hello, what is your name?");
  9. String name = userInput.nextLine();
  10. if (name.equals("Alice")||name.equals("alice")) {
  11. System.out.println("Hello Alice");
  12. } else if (name.equals("Bob")||name.equals("bob")) {
  13. System.out.println("Hello Bob");
  14. }else {
  15. System.out.println("Where is Alice and Bob");
  16. }
  17. //System.out.println(name);
  18. }
  19. }