1. Check your capitalisation! Java is case sensitive.
2. To make the sort meaningful your CrewMewmber class needs to implement Comparable, otherwize there's no way to know what the correct sort order for CrewMembers is.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
The capitalisation was Iterator() vs iterator().
Comparable isn't too hard. For a quick start, you could just return the result of comparing the CrewMember's names (the String class implements Comparable already).
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073