Unexpected Results When Comparing getString() Return Values
<p>I am facing a problem is that the if statement which I am coding is producing wrong results and can't compare two results:</p>

<p>My code is:</p>

<p><code>temp_code</code> has value <code>130</code> and <code>rs.getString(employee_id)</code> has value <code>130</code> also</p>

<pre><code>String temp_code = rs.getString(employee_id);

if ((rs.getString(employee_id)).equals(temp_code)) 
{
out.println("employee IDs equal");
}
else
{
out.println("employee IDs not equal");
}
</code></pre>

<p>But it is giving me that the employee IDs not equal</p>

<p>when I am printing the values both of them are 130 and when I am printing the value of the:</p>

<pre><code>out.println((rs.getString(employee_id)).equals(temp_code));
</code></pre>

<p>It is producing false value</p>
