java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

Coderanch | Enkita mody | 4 years 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

    Object type to a primitive type directly

    Coderanch | 4 years ago | Enkita mody
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.lang.Integer

      at ListDemo.main()
    2. Unknown
      ListDemo.main
      1. ListDemo.main(ListDemo.java:10)
      1 frame