Hey. Im trying to implement the compareTo method in java on a linked list. Not doing a very good job at it so hopeing for some help. Heres some code. Ive never done this so sorry if my questions sound retarted, or my code is way off.
public class MutibleString implements Comparable<MutibleString>/*I want to compare 2 MutibleString's so is it best to put that in the<> or just not use these <>*/
/* Also do I need any spacific fields to implemtnt the Comparable interface right? these are what I have right now*/
private Node head;
private int size;
public char index;
in here I have basic methods add remove charAt etc...
public boolean compareTo(MutibleString that)