JDK-4751076 : Please add Arrays.toString(Object[]) and the variations for different types
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-09-20
  • Updated: 2003-06-20
  • Resolved: 2003-06-20
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
EVALUATION This RFE will make a common task simpler and faster. ###@###.### 2002-09-20
20-09-2002