how to get a variable type in java code example
Example: get type of variable java
((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()
((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()