123456789101112131415161718192021222324
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */
  4. import java.util.Scanner;
  5. public class Main {
  6. public static void main(String[] args ){
  7. Scanner scanner = new Scanner(System.in);
  8. System.out.print("What is your name?");
  9. String name = scanner.nextLine();
  10. if(name.equalsIgnoreCase("alice")){
  11. System.out.println("Hi there, Alice!");
  12. }
  13. else if(name.equalsIgnoreCase("bob"))
  14. {System.out.println("Hello, Robert.");
  15. }
  16. else { System.out.println("*crickets*");
  17. }
  18. }
  19. }