title: BlueJ error: incompatible types
body: <p>Complete noob at Java here. School just started and I'm taking APCS. Our teacher showed us this cool class called Scanner, but he hasn't taught us it yet. I thought it was pretty cool, so I decided to research it more. After I did a little research, I found out that it basically allows you to use information imputed into the System into your code. I tried to make my own little program using this code. The idea is very simple.</p>
  
  <ol>
  <li><p>Ask the user to input his first name.</p></li>
  <li><p>After receiving the users first name, ask him to verify that it is his name (no spelling errors, wrong name, etc.).</p></li>
  <li><p>Use if/else statement, if yes: print a thank you. if no: print a random string making fun of him.</p></li>
  </ol>
  
  <p>At this point I intended to use and if/else statement. This is something that we as a class have yet to cover. After typing out my if else statement, I got a compile-time error. Here's what BlueJ gave me:</p>
  
  <blockquote>
    <p>incompatible type</p>
  </blockquote>
  
  <p>This is the code:</p>
  
  <pre><code>public class useInfo
  {
  public static void main(String[] args)
  {
      String firstName;
      String verifyFirstName;
      Scanner keyboardInput = new Scanner(System.in);
      Scanner verification = new Scanner(System.in);
      System.out.print("Please Enter your first name here ---&gt;");
      firstName = keyboardInput.nextLine();
      System.out.println("Thank you! Your first name is " + firstName + " , correct?");
      keyboardInput.close();
      verifyFirstName = verification.nextLine();
      if (verifyFirstName = "Yes") //this is the section I get the error on. RIGHT HERE.
      {
          System.out.println("Great! Thanks for you time.");
      }
      else
      {
          System.out.println("You need to get your stuff together. How can you not even type your own name correctly?");
      }
  }
  }
  </code></pre>