Skip to content

Instantly share code, notes, and snippets.

@joaoyuki
Created August 18, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaoyuki/1fc179ec908f49e97eac283e70f4cb2f to your computer and use it in GitHub Desktop.
Save joaoyuki/1fc179ec908f49e97eac283e70f4cb2f to your computer and use it in GitHub Desktop.
Tipos básicos no Kotlin
fun main(args: Array<String>){
val inteiro: Int = 10;
val d: Double = 10.0;
val f: Float = 10.0F;
val l: Long = 10;
val s: Short = 10;
val b: Byte = 1;
println("Inteiro: " + inteiro);
println("Double: " + d);
println("Float: " + f);
println("Long: " + l);
println("Short: " + s);
println("Byte: " + b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment