cannot find symbol-method add (java.lang.integer)..whats the problem actually?
<pre><code>public class ArrayList
{
    // instance variables - replace the example below with your own
    public void processinput (String s)
    {
        int[] a = {34, 25, 16, 98, 77, 101, 24};

        ArrayList  b = new ArrayList();

        for(int i = 0; i &lt; a.length; i++) {
            int d = a[i];
            if(d%2 &gt; 0) {
               b.add(new Integer(d));
            }
        }

        for(int i = 0; i &lt; b.size(); i++) {
            System.out.print(b.get(i) + " ");
        }

        for(int i = a.length; i &gt;= 0; i--) {
            System.out.print(a[i] + " ");
        }
    }
}
</code></pre>
