Skip to content

Instantly share code, notes, and snippets.

@mttchpmn
Created March 7, 2021 09:49
Show Gist options
  • Save mttchpmn/33185ab9db8a1387173111e01fdfd51d to your computer and use it in GitHub Desktop.
Save mttchpmn/33185ab9db8a1387173111e01fdfd51d to your computer and use it in GitHub Desktop.
toggleStringCase
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