hc0re

Hello Kotlin!

Jun 8th, 2022
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.24 KB | None | 0 0
  1. fun main() {
  2.     val hello: Array<Byte> = arrayOf(72, 101, 108, 108, 111, 32, 75, 111, 116, 105, 110, 33)
  3.     val helloIter = hello.iterator()
  4.     while (helloIter.hasNext()) {
  5.         print(helloIter.next().toInt().toChar())
  6.     }
  7. }
  8.  
Advertisement
Add Comment
Please, Sign In to add comment