12345678910111213141516171819
  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 scanner = new Scanner(System.in);
  8. System.out.println("What's your name");
  9. String name = scanner.nextLine();
  10. if(name.equalsIgnoreCase("Bob")){
  11. System.out.println("Well, Hello there " + name);
  12. } else if(name.equalsIgnoreCase("Alice")){
  13. System.out.println("Well, Hello there " + name);
  14. } else
  15. System.out.println("Try again.");
  16. }
  17. }