Code example for Calendar

Methods: add, clone

0
    else 
      return alertAtRepeatingAux(nextDay(c));
  } 
   
  private Calendar nextDay(Calendar c) {
    Calendar nextC = (Calendar) c.clone();
    nextC.add(Calendar.DAY_OF_WEEK, 1);
    return nextC;
  } 
 
  public List<String> repeatDays() {
    boolean[] selections = {
        this.sunday,
        this.monday,
        this.tuesday,
        this.wednesday,
        this.thursday,
        this.friday,
        this.saturday };
    List<String> days = new ArrayList<String>();
    for (int i = 0; i < 7; i++) {