Kotlin - Data Types
How can you check if a
Char represents a whitespace character in Kotlin?Char represents a whitespace character in Kotlin?isWhitespace() to check if a Char is any whitespace character (space, tab, newline, etc.).ch == ' ' checks only space, isSpace() does not exist, and isBlank() is for Strings.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions