title: Count the Integer Array Values
body: <p>how to count the integer values from the code below :</p>
  <pre><code>            String arr = [1,0,1,0,1,1];
              String[] items = arr.replaceAll(&quot;\\[&quot;, &quot;&quot;).replaceAll(&quot;\\]&quot;, &quot;&quot;).replaceAll(&quot;\\s&quot;, &quot;&quot;).split(&quot;,&quot;);
  
              int[] results = new int[items.length];
  
              for (int i = 0; i &lt; items.length; i++) {
                  try {
                      results[i] = Integer.parseInt(items[i]);
                  } catch (NumberFormatException nfe) {
                      //NOTE: write something here if you need to recover from formatting errors
                  };
              }
  </code></pre>
  <p>I want to implement if 0 is more than 1 so will print false and if 1 is more than 0 will print true</p>