/** * 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.println("What is your name?"); String name= in.nextLine(); if (name.equals( "Bob")) { System.out.println("Hello Bob"); } else if(name.equals ("Alice")) { System.out.println("Hello Alice"); } else { System.out.println("You are not Alice and Bob"); } } }