what is Kotlin equivalent of this Java's code: `st...
# announcements
m
what is Kotlin equivalent of this Java's code:
str.charAt(str.length() -1) == ' '
t
I’d go for
str.last() == ' '
👍 2
r
Or
str.endsWith(' ')
7