TextConverter.java
/**
    * Provides the main menu for the text converter and calls methods based on menu options
    * chosen.
    *
    * @param args unused
    */
Provides the main menu for the text converter and calls methods based on menu options
chosen.

@param args unused
Provides the main menu for the text converter and calls methods based on menu options chosen . @param args unused
public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("Welcome to the Text Converter.");
        System.out.println("Available Actions:");
        System.out.println("  1337) convert to 1337-speak");
        System.out.println("  rev) reverse the order of the string and reverse the case if it " +
                "is a letter");
        System.out.println("  caesar) convert each letter to the letter preceding it");
        System.out.println("  quit) exit the program");
        System.out.println();
        System.out.print("Please enter a string: ");
        String userString = input.nextLine();
        String actionCode = "";
        while (true) {
            System.out.print("Action (1337, rev, caesar, quit): ");
            actionCode = input.nextLine();
            if (actionCode.equals("1337")) {
                userString = action1337(userString);
                System.out.println(userString);
            }else if (actionCode.equals("rev")) {
                userString = actionReverse(userString);
                System.out.println(userString);
            }else if (actionCode.equals("caesar")) {
                userString = actionCaesar(userString);
                System.out.println(userString);
            }else if (actionCode.equals("quit")) {
                break;
            }else{
                System.out.println("Unrecognized action.");
                System.out.println(userString);
            }
        }
        System.out.println("See you next time!");
    }
public static void main ( String [ ] args ) { Scanner input = new Scanner ( System . in ) ; System . out . println ( "Welcome to the Text Converter." ) ; System . out . println ( "Available Actions:" ) ; System . out . println ( "  1337) convert to 1337-speak" ) ; System . out . println ( "  rev) reverse the order of the string and reverse the case if it " + "is a letter" ) ; System . out . println ( "  caesar) convert each letter to the letter preceding it" ) ; System . out . println ( "  quit) exit the program" ) ; System . out . println ( ) ; System . out . print ( "Please enter a string: " ) ; String userString = input . nextLine ( ) ; String actionCode = "" ; while ( true ) { System . out . print ( "Action (1337, rev, caesar, quit): " ) ; actionCode = input . nextLine ( ) ; if ( actionCode . equals ( "1337" ) ) { userString = action1337 ( userString ) ; System . out . println ( userString ) ; } else if ( actionCode . equals ( "rev" ) ) { userString = actionReverse ( userString ) ; System . out . println ( userString ) ; } else if ( actionCode . equals ( "caesar" ) ) { userString = actionCaesar ( userString ) ; System . out . println ( userString ) ; } else if ( actionCode . equals ( "quit" ) ) { break ; } else { System . out . println ( "Unrecognized action." ) ; System . out . println ( userString ) ; } } System . out . println ( "See you next time!" ) ; }
Provides the main menu for the text converter and calls methods based on menu options
 chosen.
Provides the main menu for the text converter and calls methods based on menu options chosen .