/** * Created by iyasuwatts on 10/17/17. */ import java.util.*; public class Main { public static void main(String[] args ){ Scanner response = new Scanner(System.in); System.out.println("What's your name? "); for(int i=0; i<5;i++){ String RespondersName = response.nextLine(); if (RespondersName.equals("Bob") || RespondersName.equals("bob") ||RespondersName.equals("BOB")) { System.out.println("Greetings " + RespondersName); //break; } else if (RespondersName.equals("alice") || RespondersName.equals("Alice") || RespondersName.equals("ALICE")){ System.out.println("Greetings " + RespondersName); //break; } else { System.out.println("Your name is not Alice or Bob"); } } } }