Search 2Dim array

Can someone take a look at this. Create a method called findElement, which takes an integer value and a two-dimensional integer array as inputs and returns true if the value is in the array. If the value is not in the array, the method should return false.
This is what I have. Its not returing the correct answer.

Perfect. I'll just suggest one change here, but it's probably something you don't need to worry about: if you have a huge array (say, something like theArray[1000][1000]) and the first item is a match, you'll still check all of the million things in the 2D array even though you've found a match. There's two easy ways to get out of this, and which to use is up to you (there's reasons for each). First, you can just return once you've found the match:

It should be fairly easy to see how this gets the right result and why it's more efficient. Another way to do it is a tad more jumbled and fancy, and involves labels (which can be a touchy subject). It looks something like this: