Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (monthName != "January") {
- throw new IllegalArgumentException("Month(): bad month name");
- }
- Output when a month is not typed:
- Exception in thread "main" java.lang.IllegalArgumentException: Month(): bad month name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement