001package hw3.optional;
002
003public class StringScrambler {
004
005    public String reverseWordOrder(String input) {
006
007        // PLACE YOUR IMPLEMENTATION HERE
008
009        // this line added so skeleton class compiles; remove it.
010        return "";
011    }
012
013
014    public static void main(String args[]) {
015        StringScrambler scrambler = new StringScrambler();
016        String input;
017        String output;
018
019        input = "To be or not to be, that is the question.";
020        output = scrambler.reverseWordOrder(input);
021        System.out.println(output);
022
023        input = "Stressed spelled backwards is Desserts";
024        output = scrambler.reverseWordOrder(input);
025        System.out.println("\n\n" + output);
026    }
027
028}