Originally Posted by
Iron Lion
I'd suggest you write 4 methods, which search the grid and return the coordinates of the first letter if the word is found, or [-1, -1] if not found:
private int[][] searchHorizontal(String str)
private int[][] searchVertical(String str)
private int[][] searchUpwardsDiagonal(String str)
private int[][] searchDownwardsDiagonal(String str)
(Edit: if the rest of the program doesn't care about where the word is found, int[][] can be replaced with boolean.)
and then pass the target word and its backwards counterpart to each method. I'll leave the implementation of each of those methods for you to work out.
Also, your code would be a lot more readable if you post it in [code][/code] tags.