title: How can I check if all elements of array doesn't equal to some value? (e.g. not empty)
body: <p>Array before.</p>
  
  <pre><code>  String[] player = {"Empty","Empty","Empty","Empty"}
  </code></pre>
  
  <p>Array after input.</p>
  
  <pre><code>String[] player = {"Tom","Bob","Alex","Kid"}
  </code></pre>
  
  <p>I remember there was a way to check all of the elements of the array.</p>
  
  <pre><code>if(!player[0].equals("Empty") &amp;&amp; !player[1].equals("Empty") &amp;&amp; !player[2].equals("Empty") &amp;&amp; !player[3].equals("Empty"))
  {
     System.out.println("No more space");
  }
  </code></pre>
  
  <p>My question. Is there a way to select all of the elements of an array?</p>