Take a look at the java.util.Calendar and java.util.GregorianCalendar classes from the
Java API. You will simply want to create a date object as the January 1 of the year in question, go to the first Friday (by
testing what day of the week the first is, and then doing the necessary calculation to get to the first Friday), then go to the first of the next month and do the same, or once you have the first Friday of the year, simply iterate through the year 7 days at a time and see if the month changes form the previous value; if it does, it�s a new month and thus the first Friday of the month.
You can also look at
example 376 - Comparing Dates and other related examples at JavaAlmanac.com.
Also take a look at the JavaWorld articles
Calculating Java dates and
Working in Java time : Learn the basics of calculating elapsed time in Java.