Learn various methods to convert String to int in Java including parseInt(), valueOf(), and error handling. Complete guide with examples and best practices.