Home > Back-end >  For Java appear this mistake, what should I do
For Java appear this mistake, what should I do

Time:10-05


Compiler. Java: 115: error: always find a symbol
Return DateUtil (year, month, day);
^
Symbol: method DateUtil (int, int, int)
Location: class DateUtil
1 errors

The class DateUtil {

Public DateUtil getPreviousNDays (int n) {//year - month - day n days before the date of the
If (this. IsLeapYear (year)==true) {d [1]=29; }
for(i=0; iThis. Day -; }


Return DateUtil (year, month, day);
}
}

CodePudding user response:

What parameter is needed to see DateUtil

CodePudding user response:

Code to send all,
Then generally time utility class, is done with a static method,
  • Related