Remember the following things:
Integer.parseInt("1"); // ok
Integer.parseInt("-1"); // ok
Integer.parseInt("+1"); // ok
Integer.parseInt(" 1"); // Exception (blank space)
Integer.parseInt("2147483648"); // Exception (Integer is limited to a maximum value of 2,147,483,647)
Integer.parseInt("1.1"); // Exception (. or , or whatever is not allowed)
Integer.parseInt(""); // Exception (not 0 or something)
There is only one type of exception: NumberFormatException
En esta página del sitio puede ver el video en línea Java Tutorial on java.lang.NumberFormatException || Java Error Fixes / Exception Solution de Duración hora minuto segunda en buena calidad , que subió el usuario Oh My Software Engineer ....! 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 354 veces y le gustó 3 a los espectadores. Disfruta viendo!