I'm using Java and have a function like this:
public date verifDate(date){
Date dateActuelle = new Date();
if (DateUtils.getDateAddDays(date, 1).after(dateActuelle)) {
return date;
} else {
//exit
}
I want to get out of the function and not continue the rest of the program.