I could not locate the package in which Java defines raw arrays like String[] strs
( not ArrayList).
What methods and properties are defined in such Java array and how do I return an iterator for such array supposed I am asked to return an iterator for two integers begin and end?
Here’s a good summary:
As far as “iterators”; the “beginning” and “end” are simply “0” and “.length – 1”. You can always implement your own class that wraps an array and implements Iterator.