Incompatible types in string
<pre><code>Resources r1 = getResources();
String[] refrigerant = r1.getStringArray(R.array.refrigerant);

if (refrigerant == "")
{
    if (et1.getText().toString() == refrigerant[i3]
    {
         flag = true;                               
    }
</code></pre>

<p>I got the error incompatible  operand types String[] and string
please give me solution.</p>
