123456789101112131415161718
  1. //Lauren
  2. import java.util.Scanner;
  3. public class Main {
  4. public static void main(String[] args ){
  5. Scanner in = new Scanner(System.in);
  6. System.out.print("What is your name?");
  7. String name = in.nextLine();
  8. String alice = "Alice";
  9. String bob = "Bob";
  10. if (name.equalsIgnoreCase(alice) || name.equalsIgnoreCase(bob)) {
  11. System.out.println("Hi " + name + ", welcome to my program.");
  12. }
  13. }
  14. }