Answers for "class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')"

0

class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')

// on my case, instead of casting I did:

Long variable = Long.valueOf(variable.get("Attribute").toString());
Posted by: Guest on October-24-2020

Code answers related to "class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language