java.lang.ClassCastException: User cannot be cast to java.lang.Comparable

Coderanch | john mater | 7 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    help with loop

    Coderanch | 7 years ago | john mater
    java.lang.ClassCastException: User cannot be cast to java.lang.Comparable

    Root Cause Analysis

    1. java.lang.ClassCastException

      User cannot be cast to java.lang.Comparable

      at SortedLinkedList.add()
    2. Unknown
      SortedLinkedList.main
      1. SortedLinkedList.add(SortedLinkedList.java:8)
      2. SortedLinkedList.main(SortedLinkedList.java:40)
      2 frames