12345678910111213141516171819202122232425262728 |
- /**
- * Created by iyasuwatts on 10/17/17.
- */
-
- import java.util.Scanner;
- public class Main {
-
- public static void main (String[] args ){
- Scanner input = new Scanner(System.in);
- System.out.println ("Enter Name:" );
- String name = input.nextLine();
-
- if(name.equals ("Alice")){
- System.out.println ("Hi Alice");
- }
- else if (name.equals ("Bob")){
- System.out.println ("Hi Bob");
- }
- else {
- System.out.println ("Go Away!");
- }
- }
-
- }
-
-
-
|