How to convert a String to it's integer value in Java?

I have a string which only has numbers in it. I need to convert it to an integer. What is the best way to do it?

Ex. "5487" to 5487


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!