import java.io.*; public class State { static BufferedReader keyboard = new BufferedReader (new InputStreamReader (System.in)); public static void main (String[] args) throws IOException { String state, state2; // ask the user where they're from System.out.print ("What state are you from? "); state = keyboard.readLine(); System.out.print ("And where were you born? "); state2 = keyboard.readLine(); // print a friendly message System.out.println (state + " is a lovely place."); if (state.equals ("Kansas")) { System.out.println ("That's my home state, too!"); } else if (state.equals("California")) { System.out.println ("That's where I was born."); } else if (state.equals("New York")) { System.out.println ("Why that's Adriana's home state."); } //else if (state2.equals("California")) { System.out.println("That's where I was born too."); } //{ // System.out.println("Why, I've never beeeen."); //} } }