java.lang.ClassCastException: java.lang.String

Coderanch | Helmut Lerch | 2 decades 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

    Need to write ArrayList class & Iterator interface in jdk1.1.8

    Coderanch | 2 decades ago | Helmut Lerch
    java.lang.ClassCastException: java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at com.sun.java.util.collections.TreeMap.compare()
    2. com.sun.java
      TreeMap.compare
      1. com.sun.java.util.collections.TreeMap.compare(TreeMap.java:994)
      1 frame