+ 3
Kotlin use of less than in when statement. How can I change the first in statement to a less than?
1 Resposta
+ 2
When using the WHEN statement you can remove the parantheses and use the variable of your desire to create a condition
I have modified your code to show what I mean
https://code.sololearn.com/cCT32mId6RXR/?ref=app