So in C#, I can treat a string[] as an IEnumerable.
string[]
IEnumerable
Is there a Java equivalent?
Iterable is OK, but there is a small problem. It cannot be used easily in stream() i.e lambda expressions.
Iterable
stream()
If you want so, you should get it's spliterator, and use the class StreamSupport().
StreamSupport()