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
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5