Anyone know the code that i need to make that 2 Edit Text has to be the same Text. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone know the code that i need to make that 2 Edit Text has to be the same Text.

Anyone know the code that i need to make that 2 Edit Text has to be the same Text. As password and confirm password and if these are not the same, leave a text saying that it is not the same. this is done in android studio and it is activated by clicking the register button in java language

13th Apr 2019, 3:02 AM
Tavo Ramirez
Tavo Ramirez - avatar
6 Answers
0
I think you are looking for the method equals()
13th Apr 2019, 5:29 PM
Nonea
Nonea - avatar
+ 1
Thank you so much
13th Apr 2019, 7:19 PM
Tavo Ramirez
Tavo Ramirez - avatar
0
Maybe but i dont know how make the code
13th Apr 2019, 6:03 PM
Tavo Ramirez
Tavo Ramirez - avatar
0
Can you show the code what you have already written?
13th Apr 2019, 6:34 PM
Nonea
Nonea - avatar
0
I do not have any code written for the same reason that I do not know what I need, I only have 2 Edit Text
13th Apr 2019, 6:58 PM
Tavo Ramirez
Tavo Ramirez - avatar
0
OK then, generally it works like this: string1.equals(string2) it returns a boolean. I hope it helps...
13th Apr 2019, 7:03 PM
Nonea
Nonea - avatar