What goes in the blank?
// true for "", " " and "\t" (Java 11+) boolean blank = s.____();
Answer: isBlank
isBlank returns true when the string is empty or contains only whitespace; isEmpty ignores whitespace.
Play Problem Solving ▸
// true for "", " " and "\t" (Java 11+) boolean blank = s.____();
Answer: isBlank