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 Coderanch by Nathan Doe, 1 year ago
NameRank cannot be cast to java.lang.String
java.lang.ClassCastException: NameRank cannot be cast to java.lang.String at NameRank.compareTo(NameRank.java:1) at java.util.TreeMap.put(TreeMap.java:545) at java.util.TreeSet.add(TreeSet.java:238) at CollectionsTest.main(CollectionsTest.java:213)