I am trying to sum up each arraylist within an arraylist. I am assuming you use the get method. but I am not sure how to do this exactly. This is what I have so far. As indicated by the arrows is were I am trying to add up the arraylist before it starts on the new arraylist. Any ideas?????
    public void sparseCountTimer(ArrayList arraylist)
    {
        double totalRowsCount = 0.0;
        long   totalTime      = 0;
        for (int x = 0; x < iteration; x++)
        {
            long   startTime2     = 0,
                   estimatedTime2 = 0;
            double rowTotal       = 0.0,
                   lastRowTotal   = 0.0;
            for( int i = 0; i < matrixDimension; ++i)
            {
                if (lastRowTotal < rowTotal)
                {
                    lastRowTotal = rowTotal;
                    startTime2 = System.nanoTime(); 
                }
                rowTotal = 0.0;
                for (int j = 0; j < matrixDimension; ++j)
                {
            >>>>>>>>>    rowTotal += arraylist.get(j).get(i);    <<<<<<<<<<<<<<
                }
                estimatedTime2 = System.nanoTime() - startTime2;
            }
            totalRowsCount += lastRowTotal;
            totalTime += estimatedTime2;
        }
    }
 
    