title: How to pass the date into GregorianCalendar in JAVA?
body: <p>Sorry, I am very new to this.</p>
  
  <pre><code>this is from another class
  private String name;
  private String code;
  private GregorianCalendar startDateTime;
  private GregorianCalendar endDateTime;
  </code></pre>
  
  <hr>
  
  <pre><code>this is for main
  CourseDetail []c1={new course("Java","AACS 2083",
  new GregorianCalendar(2015,06,20,14,00),new GregorianCalendar(2015,06,21,15,00))};
  </code></pre>
  
  <p>Am I close to the answer?</p>
  
  <p>May I ask how to pass the date into the GregorianCalendar by using method above??
  Sorry for this dummy question...</p>