/** * Created by iyasuwatts on 10/17/17. */ import java.util.*; public class Main { public static void main(String[] args ){ Scanner in = new Scanner(System.in); System.out.print("Hey! What's your name?\n"); String name = in.next(); if (name.equalsIgnoreCase("Bob") || name.equalsIgnoreCase("Alice")) { System.out.print("Welcome, " + name + "! It is good to see you.\n"); } else { System.out.print(name + "??? Who are you? Bring me Bob or Alice.\n"); } } }