Created
August 4, 2019 12:17
-
-
Save rail-rate/a75c21de5b5876990d47fd299d3588bc to your computer and use it in GitHub Desktop.
List4
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 = listOf(1, 2 ,3) //3つの要素を作って1~3の数字を順番に入れた | |
a[0] = 5 //最初の要素を1から5に変更した | |
for(x in a) println(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment