Java Array to String toString(Object[] array)

Here you can find the source of toString(Object[] array)

Description

Convert the given array to String.

License

Open Source License

Parameter

Parameter Description
array The Object array

Return

The text in format "[a,b,c]"

Declaration

public static String toString(Object[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

public class Main {
    /**/*  www .ja  v a  2  s  . c  o m*/
     * Convert the given array to String.
     * 
     * @param array
     *            The Object array
     * @return The text in format "[a,b,c]"
     * 
     * @see #toArray(String)
     */
    public static String toString(Object[] array) {
        return Arrays.toString(array);
    }
}

Related

  1. toString(Object array)
  2. toString(Object array)
  3. toString(Object array[])
  4. toString(Object[] a)
  5. toString(Object[] array)
  6. toString(Object[] array)
  7. toString(Object[] array)
  8. toString(Object[] objects)
  9. toString(String arrayName, T[] targets)