This is a small Java program that uses stacks and a queue to reverse words in place without changing the order they appear in the string.
Compile with the following command in terminal:
javac ReverseWords.java
Run with either no command line arguments (the program will use a default string) or supply your own:
java ReverseWords "It is hot in here."