What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-22 04:59:09
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()); Add solution
Best helpers
Rlw
+5
John Rualo
+5
Michael Wang
+5
Heavens
+5
Calvino
+5
Withparadox2
+5
SuzyTypehead
+5
Aj Morales
+5