So this issue I believe is simple enough that I can just give you three lines of code and the problem is likely my understanding of the date class.
public DrawCalendar(GregorianCalendar date){
date.setFirstDayOfWeek(GregorianCalendar.THURSDAY);
System.out.print(date.get(GregorianCalendar.DAY_OF_WEEK));
My problem is that I BELIEVE I’m adjusting the starting day of the week, so today, by default is the 6th day of the week. If I change this to a random day or integer like THURSDAY I’m still getting that today is the 6th day of the week even when thursday is the 1st day of the week.
That is what I BELIEVE is happening, why would the print statement not be returning a different number based on the first day of the week which was adjusted just one line before it?
1 Answer