Comments¶
- An array in Java is not an
Iterable(due to design reasons). There is no super class of array andIterableeither in Java. If you want a method to support both array andIterableas the parameter, you need to overload it (for both array andIterable.) It is the same situation in Kotlin as Kotlin is mostly Java.
Differences Between Kotlin and Java
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comparison of Kotlin to Java Programming Language
Kotlin vs Java: Most Important Differences That You Must Know