Main.java 351B

12345678910111213141516171819
  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 sc = new Scanner (System.in);
  8. String name = sc.nextLine();
  9. if (name.equals("Bob")|| name.equals("Alice")) {
  10. System.out.println("Hi " + name + "!");
  11. }
  12. }
  13. }