Comparing two editTexts in android

前端 未结 6 1535
既然无缘
既然无缘 2020-12-22 05:01

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.



        
6条回答
  •  一整个雨季
    2020-12-22 05:27

    Make it simple:

    if (!et1.toString().equals(et2.toString())) {
        MsgBox(this,"--Your Message--");
    }
    

提交回复
热议问题