Log in

View Full Version : Hi guys, can you help me in this problem pretty pretty please?


denicecorny
Feb 5, 2014, 04:30 AM
A list is a sequential data structure. Design a List class that uses a
Comma-delimited Stringsuch as, "a,b,c,d,12,dog"to implement a list. Implement the
Following methods for this class:
Void addItem( Object o ); // Use Object.toString()
String getItem(int position);
String toString();
Void deleteItem(int position);
Void deleteItem(String item);
Int getPosition(String item);
String getHead(); // First element
List getTail(); // All but the first
Element
Int length();

I don't know how to code this in java. :) :) :)
Thank you in advance