title: While statement with Calendar.after doesn't start
body: <p>So I've spend a fair amount of Googling and looking through things, but I just can't get it to work. It won't consider the statement as true, even though the request.getEnd() is a couple days after the current startCal.getTime. Any ideas?</p>
  
  <pre><code>while(startCal.after(request.getEnd()))
              {
                  /* Calculate new beginning */
  
                  startCal.add(Calendar.DATE, 1);
                  newBegin = startCal.getTime();
                  System.out.println(newBegin);
                  /* Calculate new ending */
  
                  endCal.add(Calendar.DATE, 1);
                  newEnd = endCal.getTime();
  
                  /* Setting new dates and series ID */
                  localRequest.setBegin(newBegin);
                  localRequest.setEnd(newEnd);
                  localRequest.setSeriesID(seriesID);
  
                  /* Sending new reservation to database */
                  //reserve(localRequest);
                  System.out.println("RESERVATION DONE");
              }
  </code></pre>