Created
August 4, 2019 12:15
-
-
Save rail-rate/6cafd5fc773fa800216468db8c07a4b2 to your computer and use it in GitHub Desktop.
List3
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 = arrayOf(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