I have a question about comparing a string with the empty string in Java. Is there a difference, if I compare a string with the empty string with == or eq
==
eq
A string, is a string, is a string, whether it's the empty string or not. Use equals().
equals()