and if you don't want to look up in the Calendar API what integer now actually stands for the field "month", use a constant instead. The method does not return the number of the constant, but what is written in the field "month".
And I compared it also not with an integer (would be nine for october, as the months start with zero. Also the Maya used zero based dates by the way).
And as I don't want to confuse somebody, I'd rather use the constant Calendar.OCTOBER than the integer 9 directly. Sooner or later somebody will think, Halloween is in September then.
To all the others: At least nobody stepped into the trap:"Hey! He's instantianting Throwable! Just by the name ending in "-able" you can guess it is an interface!"
Output yesterday: Trick today, no output.
class Throwable is Serializable. So you can serialize a RuntimeException, store it to disk and send it by mail to everyone who doesn't have one. ;-)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com