Comparing String to String Not Working when the String came from SQLiteDatabase
<p>I'm retrieving string data from my sqlitedatabase and compare in to my local variable. But its not working. It goes like this codes below.</p>

<pre><code>String hole1 = " ";
Cursor cc = save.rawQuery("Select *from " +data + " where Mobile = '"+ number +"'", null);
cc.moveToFirst();
hole1 = cc.getString(cc.getColumnIndex("Hole1"));
ArrayAdapter&lt;String&gt; adapter1 = new ArrayAdapter&lt;String&gt;(  
                    this,  
                    R.layout.spinnerlayout,  
                    new String[] { hole1,"1", "2", "3", "4","5","6","7","8","9" });  adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 
((Spinner) findViewById(R.id.soloscorehole1front9)).setAdapter(adapter1);

if( ((Spinner) findViewById(R.id.soloscorehole1front9)).getSelectedItem().toString() == hole1){
                Toast.makeText(Activity.this,"True!", Toast.LENGTH_LONG).show();
            }
</code></pre>

<p>Can anyone point what is wrong with this simple codes?</p>
