TextConverter.java
/**
     * This converts each letter to the letter preceding it.
     * 'a' and 'A' will be converted to 'z' and 'Z' respectively.
     * 
     * @param current Original string
     * @return The new rotated string(initialize a new string, do not modify directly on the
     * original string)
     */
This converts each letter to the letter preceding it.

@param current Original string
@return The new rotated string(initialize a new string, do not modify directly on the
original string)
This converts each letter to the letter preceding it . @param current Original string @return The new rotated string ( initialize a new string do not modify directly on the original string )
public static String actionCaesar(String current) {
        String result = "";
        char currentChar;
        for (int i = 0; i < current.length(); ++i) {
            currentChar = current.charAt(i);
            if (Character.isLetter(currentChar)) {
                if (currentChar == 65) {
                    currentChar = 'Z';
                    result = result + currentChar;
                } else if (currentChar == 97) {
                    currentChar = 'z';
                    result = result + currentChar;
                } else {
                    currentChar = (char) (currentChar - 1);
                    result = result + currentChar;
                }
            } else {
                result = result + currentChar;
            }
        }
            return result;
    }
public static String actionCaesar ( String current ) { String result = "" ; char currentChar ; for ( int i = 0 ; i < current . length ( ) ; ++ i ) { currentChar = current . charAt ( i ) ; if ( Character . isLetter ( currentChar ) ) { if ( currentChar == 65 ) { currentChar = 'Z' ; result = result + currentChar ; } else if ( currentChar == 97 ) { currentChar = 'z' ; result = result + currentChar ; } else { currentChar = ( char ) ( currentChar - 1 ) ; result = result + currentChar ; } } else { result = result + currentChar ; } } return result ; }
This converts each letter to the letter preceding it.
This converts each letter to the letter preceding it .