• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Java List Implementation

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am required to write an ordedLinkedList class and UnOrderedArrayList class and a Student class. I have attached a zip file containing all my classes, interfaces, and methods. I can't seem to get any of my toString methods correct my output is messed up. I can't get the program to output the student name and then GPA. I am supposed to "test every method in both ordedLinkedList and UnOrderedArrayList classes on managing the student data type." I can't figure out where I'm going wrong or what I should change. I attached my output code in a picture as well.

[/code]













//Main Method For Testing



Screen-Shot-2016-04-11-at-12.32.42-PM.png
[Thumbnail for Screen-Shot-2016-04-11-at-12.32.42-PM.png]
 
Ranch Hand
Posts: 2412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see where you override toString in your orderedLinkedList and unOrderedArrayList classes
 
Claire Danvers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't know if the toString should be in those methods or in the ArrayList/LinkedList?
 
Marshal
Posts: 80634
471
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic