GregorianCalendar: set(int field, int value)
import java.util.Calendar;
import java.util.GregorianCalendar;
public class Main {
public static void main(String[] a) {
GregorianCalendar calendar = new GregorianCalendar();
calendar.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY);
}
}
Related examples in the same category