This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SortNames - oop3

 
Brian Holsenbeck
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic