How to print 2D and 3D array.

  • Its to simple if you are thinking that you can print with the help of Arrays.toString method you're right but there is a catch it shows Screenshot 2022-05-09 at 3.57.01 PM.png

-As in picture you see the location or path of that array , So how you can print it let me show you

  • Use Arrays.deepToString method to print Screenshot 2022-05-09 at 3.58.28 PM.png