title: Need to read into an ArrayList and separate Positive and Negative numbers
body: <p>I need to read in 10 integers into an <code>ArrayList</code> and then have to program sort them into two groups: "Positive Integers" and "Negative Integers".</p>
  
  <p>I have two <code>ArrayList</code>s and an if statement to determine where each integer should go, however I do not know what variable to use in order to make this work. Here is what I have so far:</p>
  
  <pre><code>import java.util.*;
  public class Sort {
    public static void main (String [] args) {
        ArrayList&lt;Integer&gt; pos = new ArrayList&lt;Integer&gt;();
        ArrayList&lt;Integer&gt; neg = new ArrayList&lt;Integer&gt;();
        Scanner sc = new Scanner(System.in);
  
        int i=0 ;
  
        while(i &lt;= 10) {
            System.out.println("enter an integer");
            if(??? &lt; 0) {  //here is where my question is
                neg.add(sc.nextInt());
            } else {
                pos.add(sc.nextInt());
            }
  
            i++;  
        }
        System.out.println("positive numbers" + pos);
        System.out.println("negative numbers" + neg);
     }
  }
  </code></pre>