When I run parseInt:
Integer.parseInt(myString);
it throws:
NumberFormatException: For input string: \"\"
Yes. (Validate your inputs before making assumptions about what are in them. :-)
+1 for already finding Apache's common-lang w/ StringUtils.
StringUtils