Java Loops II

  • + 1 comment

    We can use cal.set(year, month-1, day); , -1 for month in set method, since month in a set method starts from zero. i.e. 0 for January, 1 for February and so on.