Java Matrix Print print2DIntArray(int[][] nums)

Here you can find the source of print2DIntArray(int[][] nums)

Description

print D Int Array

License

Apache License

Declaration

public static void print2DIntArray(int[][] nums) 

Method Source Code

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

import java.util.List;

public class Main {
    public static void print2DIntArray(int[][] nums) {
        for (int[] array : nums) {
            for (int i : array) {
                System.out.print(i + ", ");
            }/*from   w ww.  ja va2  s  .co  m*/
            System.out.println();
        }
        System.out.println();
    }

    public static void print(String message) {
        System.out.print(message);
    }

    public static void print(int num) {
        System.out.print(num);
    }

    public static void print(List<String> list) {
        System.out.println("----------------------------------------------------");
        for (String str : list) {
            System.out.print(str + ", ");
        }
        System.out.println();
    }

    public static void println(String message) {
        System.out.println(message);
    }

    public static void println(int num) {
        System.out.println(num);
    }

    public static void println() {
        System.out.println();
    }
}

Related

  1. print2DIntArray(int[][] array)
  2. printMatrix(boolean[][] matrix)
  3. printMatrix(byte[][] matrix)
  4. printMatrix(byte[][] matrix, boolean printMatrix)
  5. printMatrix(double data[][])