title: How to find out the ratio of negative numbers in huge dataset
body: <p>I am trying to print negative numbers but it is saying that ArrayList cannot be resolved     </p>
  
  <pre><code>Boolean breaking = false;
  for (int row = 0; row &lt; ArrayList.length; row++) {
      for (int col = 0; col &lt; ArrayList[row].length; col++) {
          if (ArrayList[row][col] &lt; 0) {
              //Number is negative
              breaking = true; // Variable to break out of outer loop
              break;
  
          }
      }  //inner for loop scope ends here
      if (breaking) {
          break;
      }
  </code></pre>