mardi 12 novembre 2019

Java How can we create the Class check valid date [closed]

How can we create a class that check the date is valid or not. We only can use 2 if statement and no &&

the function is something like this

public class Date {    
    public static boolean isValidDate(int month, int day, int year) {        

}
}

Aucun commentaire:

Enregistrer un commentaire