rendered paste body Scanner inputpz = null;
Scanner inputwl = null;
File datapz = new File(args[1]);
File datawl = new File(args[2]);
char[][] grid=null;
int rows=0, cols =0;
WordList words=null;
try {
inputpz = new Scanner(datapz);
inputwl = new Scanner(datawl);
} catch ( FileNotFoundException fnfe) {
System.exit(2);
}
rows=inputpz.nextInt();
cols=inputpz.nextInt();
grid = new char[rows][cols];
while(inputpz.hasNext()) {
for(int i=0; i<=rows; i++) {
for(int j=0; j<=cols;j++) {
grid[i][j]=inputpz.next(".").charAt(0);
}
}
}