TheBulgarianWolf

Kotlin Conversions

Mar 10th, 2021
617
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun main(args : Array<String>) {
  2.     val number1: Int = 545344
  3.     val number2: Byte = number1.toByte()
  4.     val number3: Int = 55
  5.     val number4: Long = number1.toLong()
  6.     println("number1 = $number1")
  7.     println("number2 = $number2")
  8.     println("number3 = $number3")
  9.     println("number4 = $number4")
  10. }
RAW Paste Data