In Kotlin, you can simply use data classes instead, where the compiler automatically derives ... Kotlin provides compareTo() extension function to String.
確定! 回上一頁