123456789101112131415161718192021222324252627
  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 input = new Scanner(System.in);
  8. String userName;
  9. System.out.print("Please enter your name: ");
  10. userName = input.nextLine();
  11. if (userName.equals("Alice") || userName.equals("Bob")){
  12. System.out.println("Hello, " + userName + "! How are you today?");
  13. }
  14. else {
  15. System.out.println("That's not a very great name. It's possible that that's not even a name at all!");
  16. }
  17. }
  18. }