java.lang.ClassCastException: java.lang.String

Coderanch | Mario Martinez | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    unreachable statements.

    Coderanch | 1 decade ago | Mario Martinez
    java.lang.ClassCastException: java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at TournamentArchive$CompareTeamsByName.compare()
    2. Unknown
      TournamentArchive$CompareTeamsByName.compare
      1. TournamentArchive$CompareTeamsByName.compare(TournamentArchive.java:160)
      1 frame
    3. Java RT
      Collections.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1241)
      2. java.util.Arrays.mergeSort(Arrays.java:1248)
      3. java.util.Arrays.mergeSort(Arrays.java:1248)
      4. java.util.Arrays.sort(Arrays.java:1188)
      5. java.util.Collections.sort(Collections.java:153)
      5 frames
    4. Unknown
      TournamentArchive.main
      1. TournamentArchive.SortTeamList(TournamentArchive.java:205)
      2. TournamentArchive.main(TournamentArchive.java:324)
      2 frames