I\'m writing some Scala code which uses the Apache POI API. I would like to iterate over the rows contained in the java.util.Iterator that I get from the Sheet
java.util.Iterator
You could convert the Java collection to an array and use that:
val array = java.util.Arrays.asList("one","two","three").toArray array.foreach(println)
Or go on and convert the array to a Scala list:
val list = List.fromArray(array)