Friday, 22 February 2013

Print 2D array in a simple way

This method will Print 2D array or Multi dimension array in a simple way

System.out.println(Arrays.deepToString(AdjMatrix));

No comments:

Post a Comment