Created
January 14, 2011 17:01
-
-
Save CliveEvans/779887 to your computer and use it in GitHub Desktop.
This file contains 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
This file contains 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
private String removeNewlines(String inputString) { | |
String returnString = ""; | |
for (int i = 0;i < inputString.length(); i++) { | |
if ((inputString.charAt(i) == '\r') || (inputString.charAt(i) == '\n')) { | |
} | |
else { | |
returnString = returnString + inputString.charAt(i); | |
} | |
} | |
return returnString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment