title: Checking if an Integer Array exists in an Array with Integer Arrays as elements. [Java]
body: <pre><code>public static int Obstacle[][] = {{1, 3}, {2, 2}};
  
  public static boolean testerFunction(int j, int k) {
      int check[] = {j, k};
      if (Arrays.asList(Obstacle).contains(check)) {
          return true;
      }
      else {
          return false;
      }
  }
  </code></pre>
  
  <p>I have this code.</p>
  
  <p>It always returns false, despite check being equal to {1,3} or {2,2}</p>
  
  <p>What is wrong with my code? How do you check if an array exists in an array of arrays in Java?</p>