Created
March 29, 2016 03:06
-
-
Save shangoyanyi/63f1d3dee43d7bb8e2cf 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
public String copyString(String input){ | |
if (input == null){ | |
return null; | |
} | |
try{ | |
StringBuildersb = newStringBuilder(); | |
for (inti=0;i<input.codePointCount(0,input.length());i++){ | |
sb.appendCodePoint(input.codePointAt(i)); | |
} | |
return sb.toString(); | |
}catch(Exception e){ | |
logger.error(e, e); | |
return ""; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment