2014-03-24

posted Mar 24, 2014, 8:37 AM by Samuel Konstantinovich   [ updated Mar 24, 2014, 9:11 AM ]
Lab: Modify your linked list

tail :  a new instance variable pointing to the last element.  (you need to update this in your constructor, add, and remove methods)
add( T  data)    will add a new node at the END of the list.
For consistency, length() should also work if you say size() 


Comments