Created
September 28, 2014 17:20
-
-
Save xzzz9097/6f59e98633252bc9ebf3 to your computer and use it in GitHub Desktop.
Simple static method that removes spaces from a string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Removes spaces from a string | |
* @param raw - the string with spaces | |
* @return - the string without spaces | |
*/ | |
public static String removeSpaces(String raw) { | |
return raw.replace(" ", ""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment