1234567891011121314151617181920212223242526
  1. /**
  2. * Created by iyasuwatts on 10/17/17.
  3. */
  4. import java.util.*;
  5. public class Main {
  6. public static void main(String[] args ){
  7. Scanner in= new Scanner(System.in);
  8. System.out.println("What is your name?");
  9. String name= in.nextLine();
  10. if (name.equals( "Bob"))
  11. {
  12. System.out.println("Hello Bob");
  13. }
  14. else if(name.equals ("Alice"))
  15. {
  16. System.out.println("Hello Alice");
  17. }
  18. else {
  19. System.out.println("You are not Alice and Bob");
  20. }
  21. }
  22. }