Which of these statements check if myString has a value?

if (myString != null)if (!myString.equals(null))if (!myString.equals(""))

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.