Join Slack
Powered by
Good afternoon, colleagues. How to check the enter...
# android
ю
Юрий
06/01/2022, 5:20 PM
Good afternoon, colleagues. How to check the entered value of type :string for the fact that it is not :integer.
😶 1
g
gildor
06/03/2022, 3:32 AM
You can just use String.toIntOrNull(), it will return null if string is not a valid int (including if it larger than int
ю
Юрий
06/03/2022, 4:06 AM
Thanks a lot
Open in Slack
Previous
Next