I'm creating equation to check if the current date greater than the end date or the current date less than the end date with more than 15 days and this's my code and doesn't work for the second part of equation . what would be the error??
if (cal.compareTo(gndr1) >= 0 || cal.compareTo(gndr1) > 15) {
if (gndr2 == 0) {
new check2().setVisible(true);
} else {
new themainwindow().setVisible(true);
}
} else {
new themainwindow().setVisible(true);
}