title: Logic error executing java if/else statement
body: <p>When the code executes it:</p>
  
  <p>A. Does not allow you to input the String for employeeID,
  B. Bypasses the If/Else statement completely.</p>
  
  <p>Code is:</p>
  
  <pre><code>    double salary = 0.0;
  String employeeID;
  
  
  
  System.out.println("\nWhich Employee would you like to see Gross Earning's of? (A, B, C, or ALL)?");
  employeeID = input.nextLine();
  
  //if else commnnad to chose which employee details required
  
  if (employeeID == "A")
      {
      if (employeeA.getHours() &gt; 40)
          {
          salary = (employeeA.getRate()*40) + employeeA.getOverTimeRate() * (employeeA.getHours() - 40);
          }
      else
          {
          salary = employeeA.getRate()*40;
          }
      }
      System.out.printf("You have chosen Employee: %s\nHours Worked: %.2f\nNormal Rate: %.2f\nOver Time Rate: %.2f\nGross Salary: %.2f\n", employeeID, employeeA.getHours(), employeeA.getRate(), employeeA.getOverTimeRate(), salary);   
  </code></pre>
  
  <p>When executed it looks like this:</p>
  
  <p>Which Employee would you like to see Gross Earning's of? (A, B, C, or ALL)?
  You have chosen Employee: 
  Hours Worked: 1.00
  Normal Rate: 1.00
  Over Time Rate: 1.00
  Gross Salary: 0.00</p>
  
  <p>I think I have done something wrong with the IF/Else statement as it doesn't seem to execute this code at all.</p>
  
  <p>Thanks
  Ciaran</p>