Menu

Showing posts with label Cast an object to Integer in Java. Show all posts
Showing posts with label Cast an object to Integer in Java. Show all posts

Cast an object to Integer in Java

We could cast an object that have integer value into an integer using below Java code.

int value = Integer.parseInt(object.toString());