TextView tv1 = (TextView) findViewById(R.id.TextView01);
  TextView tv2 = (TextView) findViewById(R.id.TextView02);

 String a = cursor.getString(1);  //  사과가 들어있으나 X
 //String a = "사과";  
  
 String b ="사과";

  tv1.setText(a);
  tv2.setText(b);

  TextView tv3 = (TextView) findViewById(R.id.TextView03);

  if (a == b) {
   tv3.setText("O");
  } else {
   tv3.setText("X");
  }



Sqlite를 사용해서 정답맞추기를 해보려고 하는데

cursor.getString(1)에는 사과가 들어있으나 String b ="사과"  와 비교해보면 false를 반환합니다 

String a 를 cursor.getString(1) 가 아닌 "사과" 하면  true를 반환하네요

이거 왜이러는 걸까요 ㅠㅠ