when i declare the method inside a constructor i'm getting error "; expected". Not sure why. could you please help me understand
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);
}
I'm getting error on the line where I declared long nightsStay();