Skip to content

Instantly share code, notes, and snippets.

@rail-rate
Created August 4, 2019 13:01
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/2a9a3878c790c92d08579e1caabb4217 to your computer and use it in GitHub Desktop.
Save rail-rate/2a9a3878c790c92d08579e1caabb4217 to your computer and use it in GitHub Desktop.
List5
fun main(args: Array<String>) {
val a : MutableList<Int> = mutableListOf(1, 2, 3) //最初に3つの要素を作った
a.add(4) //追加の要素を入れる
for(x in a) println(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment