Java Collection Print printMatrixList( Collection collection)

Here you can find the source of printMatrixList( Collection collection)

Description

print Matrix List

License

Open Source License

Declaration

public static void printMatrixList(
            Collection<? extends Object[][]> collection) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public static void printMatrixList(
            Collection<? extends Object[][]> collection) {
        System.out.println("*** Start of list");
        for (Object[][] matrix : collection) {
            printMatrix(matrix);//w w  w .j a va 2  s  .  c o m
            System.out.println("-----");
        }
        System.out.println("*** End of list");
    }

    public static void printMatrix(Object[][] matrix) {
        System.out.println("_");
        for (Object[] array : matrix) {
            System.out.print("|");
            for (Object value : array)
                System.out.print(value + "\t");
            System.out.println("|");
        }
        System.out.println("`");
    }
}

Related

  1. printCollectionSorted(Collection l, String indent)
  2. printElement(Collection pCollection, boolean pAllElement)
  3. printElementsUnderCollection(Collection collection)
  4. printList(Collection collection)
  5. println(Collection lines, String suffix, String prefix)
  6. printObjectArray(Collection valueArrays)