Here is what I have tried :
public class MonthDate {
public String toString() {
return String.format("%02d/%02d", this.day, this.month);
}
}
And I have no idea to continue
Type: Posts; User: RyanNoel
Here is what I have tried :
public class MonthDate {
public String toString() {
return String.format("%02d/%02d", this.day, this.month);
}
}
And I have no idea to continue
How to develop a class MonthDate to print out the following output ? I know one of the method is to use toString, but how?
Code:
import java.util.Arrays;
public class SortMonthDate {
public...