public class ArrayResizerRunner {

	public static void main(String args[])
	{
		//init the array
		int[][] arr = { { 2, 1, 0}, { 1, 3, 2}, {0,0,0}, {4, 5, 6}};
		
		System.out.println("Checking row 0 for zeros: "+ArrayResizer.isNonZeroRow(arr, 0));
		System.out.println("Checking row 1 for zeros: "+ArrayResizer.isNonZeroRow(arr, 1));
		System.out.println("Checking row 2 for zeros: "+ArrayResizer.isNonZeroRow(arr, 2));
		System.out.println("Checking row 3 for zeros: "+ArrayResizer.isNonZeroRow(arr, 3));
		System.out.println("----------------------------------------");
		
		
		int[][] newArray = ArrayResizer.resize(arr);
		System.out.println("New array after removing rows with zeros is:");
		for (int i=0; i< newArray.length; i++)
		{	for (int j=0; j < newArray[0].length; j++)
				{ System.out.print(newArray[i][j]+ " "); }
		System.out.println();
		}
	}
}
