Java – White space with Integer.valueOf() causes java.lang.NumberFormatException [closed]

If you try: Integer.valueOf(” 00″); …a java.lang.NumberFormatException is thrown. So, this is easy enough to fix by stripping any white space, even for a Java noob like me, but I’d very much …

How to split a string with any whitespace chars as delimiters

What regex pattern would need I to pass to java.lang.String.split() to split a String into an Array of substrings using all whitespace characters (‘ ‘, ‘t’, ‘n’, etc.) as delimiters?