For the one where you try to find daysInMonth,
have a bunch of final constants, however, you'll have to check for a leap year for February so it can't be constant.
final int DAYS_IN_JANUARY =...
Type: Posts; User: javapenguin
For the one where you try to find daysInMonth,
have a bunch of final constants, however, you'll have to check for a leap year for February so it can't be constant.
final int DAYS_IN_JANUARY =...
public void monthName(int month)
{
// put your code here
}
Supply the code to display (using System.out.println) the name of the month on the screen. The method is passed an integer in the range...