In Java an array can be initialized such as:
int numbers[] = new int[] {10, 20, 30, 40, 50}
How does Kotlin\'s array initialization look li
Here's an example:
fun main(args: Array) { val arr = arrayOf(1, 2, 3); for (item in arr) { println(item); } }
You can also use a playground to test language features.