Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean datumsPruefung(int day, int month, int year)
- {
- if (year < 1900)
- {
- return false;
- }
- if (month < 1 || month > 12)
- {
- return false;
- }
- if (istSchaltjahr(year) == true)
- {
- if (day < 1 || day > arrSchaltjahr[month])
- {
- return false;
- }
- }
- else
- {
- if (day < 1 || day > arr[month])
- {
- return false;
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement