I am sorry if this is a silly question but i tried to find the answer but couldn't get.
plse help me..
i am new in android studio but have basic java knowledge.
Actually, the problem is i am trying to compare value of TextView
and EditText
like this;
TextView a = (TextView)findViewById(R.id.t1);
EditText b = (EditText)findViewById(R.id.t2);
String x = a.getText().toString();
String y = b.getText().toString();
if(x==y)
{
//----stuff--;
}
Doesn't show any error but the code under 'if' don't execute.