public boolean OkMove(int x, int y)

int[][] Move=
{{1,3,7},{0,2,8},{1,5,13}},

I have a 2D array and two variables x and y the array list all the move list of all legal moves OkMove[0] is {1,3,7} which means a piece from [0] can move to 1, 3 or 7

How can I check whether the specified array with index x contains the element y? E.g. If OkMove[x] is 0, x can move to [1,3,7] when b is 1,3,7