Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. for (int column= 0; column < grid.length ; column++){
  2.  
  3. if (columnString.hasWord(wordYou'reComparing){ //put String columnString = ""; somewhere outside the loops
  4. print(Word found at ....);
  5.  
  6. columnString = ""; (this will clear it everytime you start a new column);
  7.  
  8. }
  9.  
  10. for (int row= 0; row < grid.length; row++{
  11.  
  12. grid[rows][column] += columnString
  13.  
  14.  
  15. }// end of column loop
  16. } // end of rows loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement