I am beginner i want to get text in EditText and compare it with another string .
I want to check if text writed in EditText is equals a 'String' then show a Toast but it is not working 
I debug and check the value of both are exactly admin but if block is not working and shows else block.
if (editText.getText().toString() == "admin") {
    //Never enter this block when i type "admin" in the EditText.
    Toast.makeText(MainActivity.this,"ok",Toast.LENGTH_LONG).show();
} else {
    Toast.makeText(MainActivity.this,"Wrong User Or Pass",
}
 
     
     
     
    