Created
August 4, 2019 13:26
-
-
Save rail-rate/2052fae5e2a2e4fa021d54a682e43d70 to your computer and use it in GitHub Desktop.
List7
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, 4, 5) //最初に5つの要素を作った | |
a.removeAt(4) | |
a.removeAt(0) | |
for(x in a) println(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment