1234567891011121314151617181920212223242526272829 |
- /**
- * Created by iyasuwatts on 10/17/17.
- */
- import java.util.*;
- public class Main {
-
- public static void main(String[] args ){
- Scanner sc = new Scanner (System.in);
- System.out.println("What is your name?");
- String name = sc.nextLine();
-
- if (name.equals ("Alice")|| name.equals("alice")){
- System.out.println("Hello Alice!");
-
- }
- else if (name.equals ("Bob")|| name.equals("bob")){
- System.out.println("Hello Bob!");
- }
- else {
- System.out.println("You are not Alice or Bob!!!!!");
- }
-
-
-
-
-
- }
- }
|