Good afternoon, colleagues. How to check the enter...
# android
ю
Good afternoon, colleagues. How to check the entered value of type :string for the fact that it is not :integer.
😶 1
g
You can just use String.toIntOrNull(), it will return null if string is not a valid int (including if it larger than int
ю
Thanks a lot