Why is it wrong to compare String and char when comparing char and int?
What types of data can be compared? Why?
It’s not good using == to String type.
If you want to compare with String type, you had better use equals method.
I found the same question on another site.
so if you want to ditails, please this site.
maybe it will help you.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.