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