Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int column= 0; column < grid.length ; column++){
- if (columnString.hasWord(wordYou'reComparing){ //put String columnString = ""; somewhere outside the loops
- print(Word found at ....);
- columnString = ""; (this will clear it everytime you start a new column);
- }
- for (int row= 0; row < grid.length; row++{
- grid[rows][column] += columnString
- }// end of column loop
- } // end of rows loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement