0

How can i make a 3x3 or 4x4 matrix with array

array

7th Dec 2016, 11:10 PM
aman bashir
aman bashir - avatar
2 Antworten
+ 2
You dont need 3 or 4 multi-dimensional array to make any sized matrix. A two dimensional array is all thats needed.
8th Dec 2016, 1:05 PM
Ousmane Diaw
- 3
Well, in Java you can do this to create a 3x3 array: int[][][] arr=new arr[5][5][5]; //Just remember the "5" are the extension of the array's dimension. I've never seen a 4x4 array. I'm still a beginner so I can't imagine such a thing. Hope you can get a better answer. Cheers!
8th Dec 2016, 1:29 AM
Project2501
Project2501 - avatar