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;

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

        return finalResult;
    }

    private boolean _debug;
}
@@ -379,16 +379,170 @@
  = 0L;%0A%0A
+        /*%0A         * Since + has precedence, we need to unwind the entire%0A         * equation and compute those values first before doing *%0A         */%0A%0A
         

Update MathsParser.java