Monthly Archives: September 2009

Java Design Patterns – A Short Writeup

A design pattern is a general, language-independent technique used to solve a class of related problems. A design pattern is a widely accepted solution to a recurring design problem. It is a guideline rather than a specific solution. An idiom, … Continue reading

Posted in Java | Tagged | Leave a comment

Number of Days Since 1900

Here is a simple Orace query to calculate the number of days since 1900. Thanks to Ari Kaplan for the query!

Posted in Oracle | Tagged , | 2 Comments

Get the Last Day of The Month in Java

Use the getActualMaximum(int field) method of the Calendar class to retrieve the last day of the month. See the below code for usage details. The code retrieves the last date for Feb 2009 as an example. You can modify the … Continue reading

Posted in Java | Tagged , , | 1 Comment