This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I was assigned a task at work where i was involved in an ETL process to load data from source file to warehouse. The date formats in source files vary from one source provider to another.
Hence, i needed a may to validate input string against multiple formats and implemented this solution.