Hello, I found this case with Stream.of() and mad...
# getting-started
f
Hello, I found this case with Stream.of() and made me curious: If I send the array variable It does not iterate the objects in the operations only the full array. Why does Kotlin behave differently with this case to Java?
Copy code
val numbers = arrayOf("1", "2")

Stream.of(numbers).forEach { println(it) } // Prints all Array
// Prints out the full array:
// [Ljava.lang.String;@2121f1bb

Stream.of("1", "2").forEach { println(it) }  // Prints each item
// Prints out every item:
// 1
// 2