123456789101112131415161718192021
  1. import java.util.Scanner;
  2. /**
  3. * Created by iyasuwatts on 10/17/17.
  4. */
  5. public class Main {
  6. public static void main( ){
  7. Scanner user_input = new Scanner( System.in );
  8. System.out.print("What is your name? ");
  9. String name = user_input.next();
  10. if(name.equals("Bob") || name.equals("Alice")) {
  11. System.out.println("Hello there " + name);
  12. } else{
  13. System.out.println("Im sorry I don\'t know you");
  14. }
  15. }
  16. }