/** * LetterJumble will represent and manipulate the base for a word search. **/ public class LetterJumble { private char[][] lj; public LetterJumble(int numRows, int numCols) { lj = new char[numRows][numCols]; } public void fill() { String alpha = "abcdefghijklmnopqrstuvwxyz"; for(int row=0; row < lj.length; row++) { for(int col=0; col < lj[row].length; col++) { lj[row][col] = alpha.charAt((int) (Math.random() * alpha.length())); } } } public void print() { for(int row=0; row < lj.length; row++) { for(int col=0; col < lj[row].length; col++) { System.out.print(lj[row][col] + ", "); } System.out.println(""); } } }