Is there any real use case for parallel arrays in Java? It seems too cumbersome to maintain N arrays which are interrelated.
Example:
int ages[] =
Parallel arrays are a holdover from languages like Basic (the original one) that had no data structures other than arrays. You should define objects as you suggest, instead.