shekhargulati / strman-java

A Java 8 string manipulation library.

Home Page:https://shekhargulati.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add swapCase function

shekhargulati opened this issue · comments

This function will have following signature

public static String swapCase(String input)

Test case should pass following tests

assetEquals(swapCase("AaBbCcDdEe"), "aAbBcCdDeE");
assetEquals(swapCase("Hello World"), "hELLO wORLD");
assetEquals(swapCase(""), "");
assetEquals(swapCase(null), "");