If i have this method: public static int numberMonth(int parseMonth, String leapYear)
how would i print it out in this method:
public static void main(String[] args)
{
Boolean correctDate = false;
String date;
while (!correctDate)
{
// It is OK to embed the way you called the method checkInput(getInput())
// but for troubleshooting, it is easier for me to break into smaller steps.
// Request Date and get user response
date = getInput();
// Verfiy that the date entered contains a valid........
correctDate = checkInput(date);
// Display meesage to user
if (correctDate == true)
{
System.out.println("The date you entered is: " + date);
System.out.println(numberMonth);
System.out.println("The numerical date: " );
}
else
{
System.out.println("Please enter valid date ");
}
}
}