Posts by Gonçalo Correia • 1 point
1 post
-
0
votes0
answers38
viewsQ: Check whether a string is contained in a char matrix in horizontal or vertical JAVA
For the time being I’ve written this function public static boolean isHidden(char[][] board, String word){ boolean check = false; for(int i = 0; i < (board[0].length); i++){ for(int j = 0;…