There are three different groups of months when you consider the number of days in a month.
Some have 30, some have 31 and one has either 28 or 29.
Use if statements to see which group the given...
Type: Posts; User: Norm
There are three different groups of months when you consider the number of days in a month.
Some have 30, some have 31 and one has either 28 or 29.
Use if statements to see which group the given...
What data structures and coding techniques do you know about?
The simplest way to convert a String with the name of a month to an int value for the number of days would be an if statement with a...
You could use the System.out.println() method to display the number of days on the console.
Use 29 days for a leap year.
Are these really your questions?