What's the equals method? | Sololearn: Learn to code for FREE!

+1

What's the equals method?

Please.

2/4/2017 5:49:39 PM

Hxhxn Djxx

2 Answers

New Answer

+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"); }

0

Thanks