String Repeat in Kotlin
Level 123 keystrokes
Repeats the string "Hi" three times and prints it.
Kotlin code
// repeat(n) returns the string repeated n times// "Hi" repeated 3 times prints HiHiHi1println("Hi".repeat(3))Output
HiHiHi
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