public static void main(String args[]){
		int input[][] = {{0,0,1,0,0,0},{0,0,0,0,0,0},{1,0,0,0,0,0}};
		Fill2DMatrixWith1 fd = new Fill2DMatrixWith1();
		fd.fill(input);
		for(int i=0; i < input.length; i++){
			for(int j=0; j < input[i].length; j++){
				System.out.print(input[i][j] + " ");
			}
			System.out.println();
		}
	}
http://www.geeksforgeeks.org/a-boolean-matrix-question/
src/com/interview/multiarray/Fill2DMatrixWith1.java