import java.util.*;

public class MathsParser
{
    public MathsParser (boolean debug)
    {
        _debug = debug;
    }

    /**
     * All numbers within expressions are single digit so we can continue to use them as
     * characters.
     * 
     * Handle different precedence  to part 1.
     */

    public long parse (Vector<String> data)
    {
        long finalResult = 0L;

        /*
         * Since + has precedence, we need to unwind the entire
         * equation and compute those values first before doing *
         */

        for (int i = 0; i < data.size(); i++)
        {
            String currentLine = data.elementAt(i);
            char[] lineArray = currentLine.trim().replaceAll("\\s", "").toCharArray(); // remove all spaces
            Stack<Character> operators = new Stack<Character>();
            Stack<Long> values = new Stack<Long>();
        }

        return finalResult;
    }

    private boolean _debug;
}
@@ -861,24 +861,108 @@
 ack%3CLong%3E();
+%0A%0A            for (int j = 0; j %3C lineArray.length; j++)%0A            %7B%0A            %7D
 %0A        %7D%0A%0A

Update MathsParser.java