How to remove whitespace from a string in Java?

How to remove whitespace from a string in Java?