// 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.util.Calendar;
import java.util.Locale;

public class WPY {
    public static void main(String[] args) {
        for(int y = 1900; y <= 2010; y++) {
            Calendar cal = Calendar.getInstance(new Locale("da", "dk"));
            cal.set(y, Calendar.JANUARY, 1);
            System.out.print(y + " " + cal.get(Calendar.DAY_OF_WEEK));
            cal.set(y, Calendar.DECEMBER, 31);
            System.out.println(" " + cal.get(Calendar.WEEK_OF_YEAR));
        }
    }
}
