You have an unordered list of high scores. Which is the simple method to sort the highScores in descending order?
fun main() { val highScores = listOf(4000, 2000, 10200, 12000, 9030)}
fun main() { val highScores = listOf(4000, 2000, 10200, 12000, 9030)}A. .sortedByDescending()
B. .descending()
C. Public
D. .sort()
Answer: Option C
Related Questions on Kotlin Program
A. A new version of Java.
B. A JavaScript framework.
C. A statically-typed programming language for the JVM, Android, and browser.
D. A database management system.
Which platform does Kotlin primarily target?
A. Python Bytecode
B. JavaScript
C. JVM (Java Virtual Machine) Bytecode
D. PHP

Join The Discussion