public interface StringInverter { /** inverts a string */ String invert(String str); /** splits a string in half and inverts * the two parts. */ String invertHalf(String str); }