12345678910111213141516171819
  1. import java.util.*;
  2. /**
  3. * Created by iyasuwatts on 10/17/17.
  4. */
  5. public class Main {
  6. public static void main(String[] args ) {
  7. Scanner in = new Scanner(System.in);
  8. System.out.println("Please enter your name.");
  9. String name = in.nextLine();
  10. if(name.equalsIgnoreCase("Alice") || name.equalsIgnoreCase("Bob")) {
  11. System.out.println("Hello " + name + ". Nice to meet you!");
  12. } else {
  13. System.out.println("Sorry, " + name + " I'm looking for someone else.");
  14. }
  15. }
  16. }