Created
August 4, 2019 13:01
-
-
Save rail-rate/2a9a3878c790c92d08579e1caabb4217 to your computer and use it in GitHub Desktop.
List5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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