Yes, but you have to enclose the argument in quotes.
Here is an example run of the program:
C:\FiniteAutomata\Section03>java FSTtrimTest " Spaces in the Argument " The trimmed string: -->Spaces in the Argument<-- C:\FiniteAutomata\Section03>
Does Java have classes for calendar dates?