Created
March 7, 2021 09:49
-
-
Save mttchpmn/33185ab9db8a1387173111e01fdfd51d to your computer and use it in GitHub Desktop.
toggleStringCase
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 static String toggleStringCase(String str) { | |
var s = new StringBuilder(); | |
for (int i = 0; i < str.length(); i++) { | |
var c = toggleCase(str.charAt(i)); | |
s.append(c); | |
} | |
return s.toString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment