title: declaring method inside a constructor
body: <p>when i declare the method inside a constructor i'm getting error "; expected". Not sure why. could you please help me understand</p>
  
  <pre><code>public class Reservation {
  Date arrivalDate = new Date();
    Date departDate = new Date();
    Reservation(Date arrDate, Date deptDate)
     {
      arrivalDate = arrDate;
      departDate = deptDate;
      long nightsStay();
     }
   void nightsStay()
    {
        long days = (departDate.getTime()-arrivalDate.getTime())/(24*60*60*1000);
    }
  </code></pre>
  
  <p>I'm getting error on the line where I declared long nightsStay();</p>