+ 1

What's the equals method?

Please.

4th Feb 2017, 5:49 PM
Hxhxn Djxx
Hxhxn Djxx - avatar
2 Antworten
+ 5
you can compare two strings for example String number = "one"; String secondNumber ="o"; secondNumber += "ne"; if (number.equals(secondNumber)){ System.out.println("match gound"); }
4th Feb 2017, 5:58 PM
seamiki
seamiki - avatar
0
Thanks
5th Feb 2017, 11:41 AM
Hxhxn Djxx
Hxhxn Djxx - avatar