Android Studio – Using kotlin 1.8.22 version using command prompt , toUpperCase() and toLowerCase() not working reason
fun main() { var txt = "Hello World" println(txt.toUpperCase()) println(txt.toLowerCase()) } Error: D:kt>kotlinc Upper_Lower_case.kt Upper_Lower_case.kt:4:13: warning: 'toUpperCase(): String' is deprecated. Use uppercase() instead. println(txt.toUpperCase()) ^ Upper_Lower_case.kt:5:13: warning: 'toLowerCase(): String' is deprecated. Use lowercase() instead. println(txt.toLowerCase()) Using kotlin 1.8.22 version using…