Sweet! We can check if a string has a value by checking if it's not equal to null
. If the string was null
, using its equals()
would cause a crash.
Almost! We can check if a string has a value by checking if it's not equal to null
. If the string was null
, using its equals()
would cause a crash.