package com.ematrix; import java.util.Arrays; public class ZeroMatrix { public void transForm(int[][] S){ int n=S.length; System.out.print(n); boolean[] rows=new boolean[S.length]; boolean[] columns=new boolean[S[0].length]; Arrays.fill(rows,false); Arrays.fill(columns,false); for(int i=0;i