fork(1) download
  1. import java.util.*
  2.  
  3. fun main(args: Array<String>) {
  4. val month = 8
  5. 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]
  6. println(monthString)
  7. }
Success #stdin #stdout 0.04s 4382720KB
stdin
Standard input is empty
stdout
August