Suppose we redefine the method setDate in Display 4.4 to the following:
public void setDate(int newMonth, int newDay,int newYear)
{
month = monthString(newMonth);
day = newDay;
year = newYear;
System.out.println("Date changed to "
+ newMonth + " " + newDay + ", " + newYear);
}
Indicate all instances of newMonth that have their value changed to 6 in the
following invocation (also from Display 4.4):
date.setDate(6, 17, year);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here