Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check type of variable java

public class MyClass {
    public static void main(String args[]) {
        int x = 5;
        System.out.println(((Object)x).getClass().getSimpleName());

    }
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #check #type #variable #java
ADD COMMENT
Topic
Name
1+9 =