Please add Arrays.toString(Object[]) and the variations for different types

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • x86
    • windows_2000



      Name: rmT116609 Date: 09/20/2002


      DESCRIPTION OF THE PROBLEM :
      It is tedious to iterate over an array of objects to print its content. I did not find a method to do it in the current 1.4.1 JDK API.

      I suggested adding Arrays.toString(Object[]) and the variations with the different types such as Arrays.toString(int[])...

         Arrays.toString(Object[]);
         Arrays.toString(int[]);
         Arrays.toString(long[]);
         Arrays.toString(byte[]);
         Arrays.toString(short [])
         Arrays.toString(char[]);
         Arrays.toString(boolean[]);
         Arrays.toString(float[]);
         Arrays.toString(double[]);
         


      (Review ID: 164679)
      ======================================================================

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: