title: Check if array does NOT contain a certain value
body: <p>I know that if I want to check if an array does contain a certain value I should use <code>Arrays.asList(arrayName).contains(valueName)</code>.
  But how do I check if that value is not present? At first I just thought of putting ! in front like:</p>
  
  <pre><code>!Arrays.asList(arrayName).contains(valueName)
  </code></pre>
  
  <p>but that doesn't seem to work.</p>
  
  <p>I even tried writing the if statement like this:</p>
  
  <pre><code>if (Arrays.asList(arrayName).contains(valueName)==false)
  </code></pre>
  
  <p>but that doesn't seem to work either.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public int[] duplikati(int[] tabela){
      int len = tabela.length;
      int c = 0;
      int[] count = new int[len];
      for (int i=0;i&lt;len;i++){
          if (Arrays.asList(count).contains(tabela[i])==false){
              c++;
          }
      }
      int[] result = new int[c];
      int d = 0;
      for (int j=0;j&lt;len;j++){
          if (Arrays.asList(result).contains(tabela[j])==false){
              System.out.print(tabela[j]+" ");
              result[d] = tabela[j];
              d++;
          }
      }
      return result;
  }
  </code></pre>