Created
August 4, 2019 02:14
-
-
Save rail-rate/fb0d89f4da97c1807642be80e44da864 to your computer and use it in GitHub Desktop.
List1
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 : List<Int> = listOf(100, 65, 88) //ここだけがArrayと違う | |
println("A君の点数は${a[0]}点です。") | |
println("B君の点数は${a[1]}点です。") | |
println("C君の点数は${a[2]}点です。") | |
for(x in a) println(x) //for文 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment