Lowercase String in Kotlin

Level 128 keystrokes

Converts a string to lowercase and prints it.

Kotlin code

// lowercase() returns a new string with all letters in lowercase
// The original string is not changed; this prints world
1println("WORLD".lowercase())

Output

world
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Kotlin code and how often they appear.

  • "× 2
  • (× 2
  • )× 2
  • .× 1

More Kotlin examples at level 1

← Kotlin typing practice