Answers for "java how to know a type of a variable"

3

get type of variable java

((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()
Posted by: Guest on September-20-2020

Code answers related to "java how to know a type of a variable"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language