File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9059
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
It's not a secret anymore!