I have a linked list of skipElements(K key, V value) which I need to order based on key. However I don't know how I can compare key since it is a generic.
Even implementing Comparable<skipElement> doesn't seem to work. I tried something like: if (this.key < c.key) return -1; But they're still objects and can't simply be compared with a <. Attempting to cast into int also doesn't seem to work.

