// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class Last26Mondays {
   private static SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
   public static void main(String[] args) {
      Calendar ref = new GregorianCalendar();
      while(ref.get(Calendar.DAY_OF_WEEK) != Calendar.MONDAY) {
         ref.add(Calendar.DAY_OF_YEAR, 1);
      }
      for(int i = 0; i < 26; i++) {
         ref.add(Calendar.DAY_OF_YEAR, -7);
         System.out.println(df.format(ref.getTime()));
      }
   }
}
