123456789101112131415161718
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */import java.util.Scanner;
  4. public class Main {
  5. int a;
  6. public static void main(String[] args ){
  7. Scanner Alice = new Scanner (System.in);
  8. System.out.println("enter name");
  9. String command = Alice.next();
  10. if (command.equalsIgnoreCase("Alice")){
  11. System.out.println("Hi Alice");
  12. }else if (command.equalsIgnoreCase("Bob"))
  13. System.out.println("Hi Bob");
  14. }
  15. }