12345678910111213141516171819202122 |
- /**
- * Created by iyasuwatts on 10/17/17.
- */
- import java.util.Scanner;
- public class Main {
-
- public static void main(String[] args ){
-
- Scanner in = new Scanner(System.in);
- System.out.print("What is your name? ");
-
- String firstName = in.nextLine();
- if(firstName.equals("Alice")){
- System.out.println("Hello Alice");
- }
- if(firstName.equals("Bob")){
- System.out.println("Hello Bob");
- }
- }
- }
-
|