SyntaxFix
Write A Post
Hire A Developer
Questions
You should use the instanceof operator to determine if your value is Integer or not;
instanceof
Object object = your_value;
if(object instanceof Integer) { Integer integer = (Integer) object ; } else { //your value isn't integer }