val monthString = when (month) {
1 -> "January"
2 -> "February"
3 -> "March"
4 -> "April"
5 -> "May"
6 -> "June"
7 -> "July"
8 -> "August"
9 -> "September"
10 -> "October"
11 -> "November"
12 -> "December"
else -> "Invalid month"
}
Na verdade mesmo em Java eu faria diferente:
val monthString = if (month < 1 || month > 12) "Invalid month" else arrayOf("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")[month - 1]
Veja funcionando no ideone. E no Coding Ground. Também coloquei no GitHub para referência futura.