title: Fill jtable using calendar start date and end date
body: <p>Starting date is today and end date should be today's date  +3 years
  Example:</p>
  
  <pre><code>TODAY=3.1.2013 and
  END DATE=3.1.2016
  </code></pre>
  
  <p>This is the screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/eLR7F.jpg" alt="enter image description here">
      ;</p>
  
  <pre><code>    Date begindate = new Date();
      Calendar cal = Calendar.getInstance();
      cal.setTime(begindate);
      int today = cal.get(Calendar.DAY_OF_WEEK);
      cal.add(Calendar.YEAR, 3);
      Date enddate = cal.getTime();
      Date currentdate = begindate;
      while (true) {
          if (currentdate.getTime() &gt;= enddate.getTime()) {
              break;
          } else {
          }
          Calendar c = Calendar.getInstance();
          c.setTime(begindate);
          c.add(Calendar.DATE, x++);
          Date newdate = c.getTime();
          int day = c.get(Calendar.DAY_OF_WEEK);
          currentdate = newdate;
      }
  </code></pre>