here is the question and i dont know what i am missing but it does not work clas
ID: 3651428 • Letter: H
Question
here is the question and i dont know what i am missing but it does not workclass Date{
private int date;
private int month;
private int year;
public Date(){}
public Date(int date,int month, int year){
this.date= date;
this.month = month;
this.year = year;
}
public void setDate(int date){
this.date = date;
}
public void setMonth(int month){
this.month = month;
}
public void setYear(int year){
this.year = year;
}
public int getDate(){
return date;
}
public int getMonth(){
return month;
}
public int getYear(){
return year;
}
public boolean isLeap(int year){
return year%4==0
}
}
Explanation / Answer
return year%4==0 //this line is missing a semicolon
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.