Ver originalpublic void cast(String value) { try { Integer valueOf = Integer.valueOf(value); System.out.println(valueOf); } catch (NumberFormatException nfe) { System.err.println("ERROR\nIngrese solo numeros!!!"); } }