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

Stack Overflow | Doz | 8 months 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

    MyGenericObject<Integer> = MyGenericObject<Double>?

    Stack Overflow | 8 months ago | Doz
    java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at gendemo.GenDemo.main()
    2. gendemo
      GenDemo.main
      1. gendemo.GenDemo.main(GenDemo.java:24)
      1 frame