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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Krish
, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
via Stack Overflow by user3403708
, 9 months ago
Student cannot be cast to java.lang.Comparable
via Stack Overflow by Jose Miguel Ledón
, 2 years ago
expeDiente.Cita cannot be cast to java.lang.Comparable
via Stack Overflow by David Sharfi
, 1 year ago
Starship cannot be cast to java.lang.Comparable
via Stack Overflow by Seppo420
, 3 months ago
via Stack Overflow by Brometheus
, 2 years ago
A cannot be cast to java.lang.Comparable
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 undefined.test.main(test.java:9)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.