/**
 * A simple class for experimenting with stack functions.
 *
 * @author Your Name
 * @version The Date
 */
public class K_SimpleStackTester
{
    /**
     * Read a sentence in from the user and then run various tests using
     * stacks.
     *      @param args  unused in this test driver
     */
    public static void main (String[] args)
    {
        String example = "Here is a sample sentence.";
        reverseWords(example);
        reverseLettersButNotWords(example);

        String input = ValidatedInputReader.getString("Enter a sentence.", "");
        reverseWords(input);
        reverseLettersButNotWords(input);
    }    

    /** Print the words in the sentence in reverse order.
     *  Example: "sentence. sample a is Here"
     *      @param origString  the string provided by the user
     */
    public static void reverseWords(String origString)
    {
        System.out.println("Original sentence: " + origString);
    }

    /** Print the letters in each word in reverse order,
     *  while keeping the words in the original order.
     *  Example: "ereH sa a elpmas .ecnetnes"
     *      @param origString  the string provided by the user
     */
    public static void reverseLettersButNotWords(String origString)
    {
        System.out.println("Original sentence: " + origString);
    }

}
