I have a string, which is read from a database. The string can be just "null". I need to decide whether it is null or not? Among the following ones, what is the appropriate way to do it?
String a = …; If (a == null) If ( a.length == 0)
I also see something like
If ( a.equals(“ “))
How does this work?