object to int java

https:‮/‬/www.lautturi.com
object to int java
int startInt = 12;
Object startObject = startInt;
if(startInt instanceof int) {
	int endInt = (int) startInt; // Object is int.
} else {
	// Object is not int.
}
Created Time:2017-09-27 14:36:53  Author:lautturi