you want to be using Array.equals i.e.
Array.equals
Arrays.equals(temp, numArray)
to compare the items in the array (docs), double equals will check if they are the same array reference.