title: Look for an element in a 2d Array using contains
body: <p>I have a 2D array and want to use contains method to check if myChar is part of myArray[i][0]</p>
  
  <pre><code>public static final String[][] myArray = {
          {"NM1", "DESC1"},
          {"NM2", "DESC2"},
          {"NM3", "DESC3"},
          {"NM4", "DESC4"},
          {"NM5", "DESC5"}
      }
  
  Arrays.asList(myArray).contains(mychar);
  </code></pre>
  
  <p>However this is failing for me. When i make it as 1D array like: </p>
  
  <pre><code>public static final String[][] myArrayNm = {
      "NM1",
      "NM2",
      "NM3",
      "NM4",
      "NM5"
  }
  
  Arrays.asList(myArrayNm).contains(mychar);
  </code></pre>
  
  <p>is working for me. Is there a way i can do the value check using 2D array (loop will be the last option)</p>