+ 1
Why am I getting no output?
The python equivalent I did worked, of course. https://code.sololearn.com/cry9cyl4MYTE/?ref=app
1 Resposta
+ 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.