Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java object to int

int startInt = 12;
Object startObject = startInt;
if(startInt instanceof int) {
	int endInt = (int) startInt; // Object is int.
} else {
	// Object is not int.
}
 
PREVIOUS NEXT
Tagged: #java #object #int
ADD COMMENT
Topic
Name
1+6 =