2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Best way to print a java array or multidimensional array?

i have an multidimensional array as below:

int mulD[][][] = new int[4][5][9];

now i want to print all the data inside the array.

what could be the best way to print it.

userimage

use below way to print anytype of array:


Arrays.deepToString

Answer is