java.lang.ClassCastException

[Ljava.lang.String; cannot be cast to java.lang.Comparable

Solutions on the web19065

  • via Atlassian JIRA by John Knight, 11 months ago
    [Ljava.lang.String; cannot be cast to java.lang.Comparable
  • via Stack Overflow by Ibexy I
    , 1 year ago
    [Ljava.lang.String; cannot be cast to java.lang.Comparable
  • [Ljava.lang.String; cannot be cast to java.lang.Comparable
  • Stack trace

    • java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:320) at java.util.ComparableTimSort.sort(ComparableTimSort.java:188) at java.util.Arrays.sort(Arrays.java:1246) at test.main(test.java:9)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago