Java Array Dump dumpCharCharArray(String msg, char[][] o)

Here you can find the source of dumpCharCharArray(String msg, char[][] o)

Description

dump Char Char Array

License

Open Source License

Declaration

public static void dumpCharCharArray(String msg, char[][] o) 

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:/*from   w  w w  . j a  v a2  s .  c  om*/
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

public class Main {
    public static void dumpCharCharArray(String msg, char[][] o) {
        dump("DUMPING char[][]:" + msg); //$NON-NLS-1$
        for (int i = 0; i < o.length; i++) {
            dump(new String(o[i]));
        }
    }

    public static void dump(Object o) {
        if (o == null)
            dump("null"); //$NON-NLS-1$
        else
            dump(o.toString());
    }

    public static void dump(String msg) {
        System.out.println("DUMP:" + msg); //$NON-NLS-1$
    }
}

Related

  1. dumpArray(T[] ts)
  2. dumpArrayHex(byte b[])
  3. dumpAsciiChars(byte[] b, int blen)
  4. dumpAsHex(byte[] byteBuffer, int length)
  5. dumpAsHex(byte[] src, int length)
  6. dumpData(byte data[])
  7. dumpFirst1024Byte(byte[] data)
  8. dumpGroups(String title, int[][] allGroups)
  9. dumpHex(byte[] data, int offset, int length)