Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public static boolean datumsPruefung(int day, int month, int year)
  2. {
  3. if (year < 1900)
  4. {
  5. return false;
  6. }
  7.  
  8. if (month < 1 || month > 12)
  9. {
  10. return false;
  11. }
  12.  
  13. if (istSchaltjahr(year) == true)
  14. {
  15. if (day < 1 || day > arrSchaltjahr[month])
  16. {
  17. return false;
  18. }
  19. }
  20. else
  21. {
  22. if (day < 1 || day > arr[month])
  23. {
  24. return false;
  25. }
  26. }
  27. return true;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement