title: variable initialization
body: <p>I am new to Java and I cant fix an error in a script method. It says "variables city and state might not have been initialized" </p>
  
  <p>Here is how I declared the variable:</p>
  
  <pre><code>String city;
  String state;
  </code></pre>
  
  <p>Here is where my errors are:</p>
  
  <pre><code>Scanner scan = new Scanner(System.in);
  System.out.println ("Enter the city you grew up in: " + city);
  city = scan.nextLine();
  System.out.println ("Enter the state you live in: " + state);
  state = scan.nextLine();
  </code></pre>
  
  <p>Can anyone help?</p>