/** * 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 your name."); String name = input.next(); //String name2 = input.next(); if(name.equals("Alice")){ System.out.println("Hi Alice!"); } else if(name.equals("Bob")){ System.out.println("Hi Bob!"); } else { System.out.println(name + ", I don't know you!"); } //System.out.println("Number 2's name is " + name2); } }