kotlin part of string

Solutions on MaxInterview for kotlin part of string by the best coders in the world

showing results for - "kotlin part of string"
Marco
19 Feb 2019
1val name = "James Smith"
2    
3    // Get just 'James' with subSequence()
4    val james = name.subSequence(0, 5)
5    
6    // First argument is inclusive
7    // Second argument is exclusive