+ 1

Why am I getting no output?

The python equivalent I did worked, of course. https://code.sololearn.com/cry9cyl4MYTE/?ref=app

4th Sep 2020, 7:04 PM
Roderick Davis
Roderick Davis - avatar
1 Odpowiedź
+ 2
in java, you need to use equals method to compare strings.. '==' operator works for reference comparison, not content. So arr[i].equals(d) works.
4th Sep 2020, 7:19 PM
Jayakrishna 🇮🇳