$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #297

What goes in the blank?

// true for "", "  " and "\t" (Java 11+)
boolean blank = s.____();

Answer: isBlank (also accepted: isBlank, isBlank())

isBlank returns true when the string is empty or contains only whitespace; isEmpty ignores whitespace.
Play Problem Solving ▸