DoomsdayRule is a project mainly written in Java, it's free.
John Conway's method for finding the day of the week
A John Conway style doomsday rule java program for finding the day of a week.