Skip to content

Instantly share code, notes, and snippets.

@rail-rate
Created August 4, 2019 11:32
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 rail-rate/8db651cd0fea724c795929e0f8b0993c to your computer and use it in GitHub Desktop.
Save rail-rate/8db651cd0fea724c795929e0f8b0993c to your computer and use it in GitHub Desktop.
List2
fun main(args: Array<String>) {
val a = listOf(100, 65, 88) //Int型
val b = listOf("おはよう", "こんにちは", "さようなら") //String型
val c = listOf(10.0, 25.5, 100.1) //Double型
val d = listOf(true, false, true) //Boolean型
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment