/** * Created by iyasuwatts on 10/17/17. */ import java.util.Scanner; public class Main { public static void main(String[] args ){ Scanner scanner = new Scanner(System.in); System.out.print("What is your name?"); String name = scanner.nextLine(); if(name.equalsIgnoreCase("alice")){ System.out.println("Hi there, Alice!"); } else if(name.equalsIgnoreCase("bob")) {System.out.println("Hello, Robert."); } else { System.out.println("*crickets*"); } } }