Here you can find the source of print2DIntArray(int[][] array)
public static void print2DIntArray(int[][] array)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.atomic.AtomicIntegerArray; import java.util.concurrent.atomic.AtomicReferenceArray; public class Main { public static void print2DIntArray(int[][] array) { for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[i].length; j++) { System.out.print(array[i][j] + " "); }//from ww w .j a v a2s . c o m System.out.println(); } } public static void print2DIntArray(AtomicReferenceArray<AtomicIntegerArray> array) { for (int i = 0; i < array.length(); i++) { for (int j = 0; j < array.get(i).length(); j++) { System.out.print(array.get(i).get(j) + " "); } System.out.println(); } } }