java.lang.ClassCastException: java.lang.String

Oracle Community | 807541 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Sorting

    Oracle Community | 1 decade ago | 807541
    java.lang.ClassCastException: java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at Sample.StringCompare2.compare()
    2. Sample
      StringCompare2.compare
      1. Sample.StringCompare2.compare(SortCompare.java:62)
      1 frame
    3. Java RT
      Arrays.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1181)
      2. java.util.Arrays.sort(Arrays.java:1128)
      2 frames
    4. Sample
      SortCompare.main
      1. Sample.SortCompare.main(SortCompare.java:46)
      1 frame