Variable Types in kotlin
var vs val
The value of variable type val can not be changed later on,
forex, val a = 5
Later on, you cannot make this a = 6
To achieve this you need to initialize this with var a = 5
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)