printing full 2d array code example
Example 1: print 2d array in java
int[][] array = new int[rows][columns];
System.out.println(Arrays.deepToString(array));
Example 2: print 2d array c++
for( auto &row : arr) {
for(auto col : row)
cout << col << " ";
cout<<endl;
}