import java.util.Arrays;public class Main { // MethodTasks public static void main (String[] args) { int[][] array = new int[5][5]; print2DArray(array); } static void print2DArray(int[][] array) { for (int i = 0; i < array.length; i++) { System.out.println(Arrays.toString(array[i])); } }}
Standard input is empty
[0, 0, 0, 0, 0] [0, 0, 0, 0, 0] [0, 0, 0, 0, 0] [0, 0, 0, 0, 0] [0, 0, 0, 0, 0]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!