How do I convert a String to an int in Java?

How can I convert a String value to an int type? "1234" → 1234

How do I convert a String to an int in Java?

How can I convert a String value to an int type?

"1234"  →  1234