Answers for "print out 2d array"

3

print 2d array in java

int[][] array = new int[rows][columns];
System.out.println(Arrays.deepToString(array));
Posted by: Guest on October-24-2020
0

print 2d array c++

for( auto &row : arr) {
    for(auto col : row)
         cout << col << " ";
	cout<<endl; 
}
Posted by: Guest on April-04-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language