This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes SortNames - oop3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "SortNames - oop3" Watch "SortNames - oop3" New topic

SortNames - oop3

Brian Holsenbeck

Joined: Jul 01, 2008
Posts: 8
I'm working ahead on this, and have coded oop3. The lesson says: Purpose: To learn how to work with an ArrayList, how to implement an interface, and how to use I/O.

I didn't have to implement any interfaces. Are we supposed to create a new Names class, and make it Comparable? I just used strings to hold the names I read in...
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9044
You will need to create a class to implement the required interface. You may find some hints in this forum if you search on "SortNames" (without the quote marks)

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: SortNames - oop3
Similar Threads
Inner Classes
OOP 3 - Question
Question about OOP 3 SortNames
OOP3 - SortNames is OK forwards, but can't reverse!