Arrays-Wave print Column Wise- run error in all tc's


how to resolve this???

Hi ajit,
Your code is working correctly for Square Matrix but for Rectangular Matrix your code is giving index Out of Bounds Exception.
Try to modify your code for Rectangular matrix.
If the problem still persists revert back here.