import java.util.*; import java.io.*; public class MineSweeper{ public MineSweeper(String fn){ readInput(fn); } private void readInput(String fn){ try{ int[][] arr; Scanner s = new Scanner( new File(fn)); int count = 1; while(true){ int n = s.nextInt(); // read number of rows. int m = s.nextInt(); // read number of columsn if(n == 0 && m ==0) return; // if n or m == 0 exit System.out.println("Field #" + count++); arr = new int[n+2][m+2]; for(int i=0;i