Java Array arrayPrint(T[] arr)

Here you can find the source of arrayPrint(T[] arr)

Description

array Print

License

Open Source License

Declaration

private static <T> String arrayPrint(T[] arr) 

Method Source Code

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

public class Main {
    private static <T> String arrayPrint(T[] arr) {
        String retval = "[" + arr[0].toString();
        for (int i = 1; i < arr.length; i++) {
            retval = retval + ", " + arr[i];
        }/*w  w  w.j av a2 s.  c  o  m*/
        retval = retval + "]";
        return retval;
    }
}

Related

  1. arrayNotEmpty(T[] objects, String message)
  2. arrayOfClassType(T... array)
  3. arrayOffloatAsCSStrings(float[] ar)
  4. arrayOffloatCoordsAsCSStrings(float[] ar)
  5. arrayPrefixEqual(byte[] a1, int off1, byte[] a2, int off2, int len)
  6. arrayPrint(T[] x)
  7. arrayPush(String[] array, String push)
  8. arrayRangeEquals(byte[] a, int aOffset, byte[] b, int bOffset, int byteCount)
  9. arrayRepresentsProbability(double[] probs)