Search:

Type: Posts; User: RyanNoel

Search: Search took 0.10 seconds.

  1. Re: How to develop a class MonthDate to print out the following output ?

    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
  2. How to develop a class MonthDate to print out the following output ?

    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...
Results 1 to 2 of 2