Java Array Dump dumpIntArray(int[] data, String label)

Here you can find the source of dumpIntArray(int[] data, String label)

Description

dump Int Array

License

Apache License

Declaration

protected static void dumpIntArray(int[] data, String label) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    protected static void dumpIntArray(int[] data, String label) {
        System.out.print(label);//from  w  ww . ja  v  a  2s . co  m
        for (int i = 0; i < data.length; ++i) {
            if (i % 6 == 0) {
                System.out.println();
            }
            System.out.format(" %1$11d", data[i]);
        }
        System.out.println();
    }
}

Related

  1. dumpGroups(String title, int[][] allGroups)
  2. dumpHex(byte[] data, int offset, int length)
  3. dumpHexString(final byte[] array)
  4. dumpInt(String name, int[] src)
  5. dumpIntArray(int[] A, int n)
  6. dumpMatrix(byte[] matrix, int numDataUnits, int numAllUnits)
  7. dumpMessage(byte b[])
  8. dumpOctets(byte[] data)
  9. dumpPosition(long[] position)