import java.util.*
fun main(args: Array<String>) {
val numeros: IntArray = intArrayOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
val numeros2 = Array(10, { i -> i })
println(Arrays.toString(numeros))
println(Arrays.toString(numeros2))
}
//https://pt.stackoverflow.com/q/292702/101
aW1wb3J0IGphdmEudXRpbC4qCiAKZnVuIG1haW4oYXJnczogQXJyYXk8U3RyaW5nPikgewogICAgdmFsIG51bWVyb3M6IEludEFycmF5ID0gaW50QXJyYXlPZigwLCAxLCAyLCAzLCA0LCA1LCA2LCA3LCA4LCA5KQoJdmFsIG51bWVyb3MyID0gQXJyYXkoMTAsIHsgaSAtPiBpIH0pCiAgICBwcmludGxuKEFycmF5cy50b1N0cmluZyhudW1lcm9zKSkKICAgIHByaW50bG4oQXJyYXlzLnRvU3RyaW5nKG51bWVyb3MyKSkKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjkyNzAyLzEwMQ==
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]