Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to check type of primitive value in java

int i = 20;
float f = 20.2f;
System.out.println(((Object)i).getClass().getName());
System.out.println(((Object)f).getClass().getName());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #type #primitive #java
ADD COMMENT
Topic
Name
6+8 =