Can anyone help me with this programming assignment?
public class MySortedLinkedList extends MyLinkedList { /* TODO define the method public void add(Comparable c) that, given a Comparable (an interface type for all Object subclasses that define a compareTo() method), adds it to the list in sorted order. */ /* TODO override the method void add(int index, Object o) so that it throws an UnsupportedOperationException with the message "Do not call add(int, Object) on MySortedLinkedList". Directly adding objects at an index would mess up the sorted order. */ }