Skip to content

Instantly share code, notes, and snippets.

@xzzz9097
Created September 28, 2014 17:20
Show Gist options
  • Save xzzz9097/6f59e98633252bc9ebf3 to your computer and use it in GitHub Desktop.
Save xzzz9097/6f59e98633252bc9ebf3 to your computer and use it in GitHub Desktop.
Simple static method that removes spaces from a string
/**
* 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