Integer#valueOf(String)

API is your friend :)