I am learning android I tried following codeline but it\'s giving me error please give me suggestions, that how can I compare two edittext\'s text.
edittext
Please try this:
if((edt1.getText().toString.equalsIgnoreCase("X")) && (edt4.getText().toString.equalsIgnoreCase("X")) && (edt7.getText().toString.equalsIgnoreCase("X")))
If you have to compare strings then you need to call the equals or equalsIgnoreCase function of String.
equals
equalsIgnoreCase