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