Java Array Dump dumpArray(String msg, Object[] refs)

Here you can find the source of dumpArray(String msg, Object[] refs)

Description

dump Array

License

Open Source License

Declaration

public static void dumpArray(String msg, Object[] refs) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*  w ww.  jav  a2 s .  c  o m*/
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

public class Main {
    public static void dumpArray(String msg, Object[] refs) {
        System.out.println("DUMPING array: " + msg); //$NON-NLS-1$
        if (refs == null) {
            System.out.println("null"); //$NON-NLS-1$
            return;
        }
        for (int i = 0; i < refs.length; i++)
            System.out.println(refs[i].toString());
    }
}

Related

  1. dump(T[] from, T[] to)
  2. dump_octets(byte[] oct)
  3. dump_strarr(String[] arr, String doc)
  4. dumpArray(final float[] array, final int maxElemsPerLine)
  5. dumpArray(String msg, float[][] A, int x1, int x2, int y1, int y2)
  6. dumpArray(T[] ts)
  7. dumpArrayHex(byte b[])
  8. dumpAsciiChars(byte[] b, int blen)
  9. dumpAsHex(byte[] byteBuffer, int length)