i'm using Java and i have a function like that :
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 don't continue processing the rest of the program. How can i do it ?