Jay,
I've just tried your formatting code in a regular
java application. The problems seems to be this: You are trying to format numbers represented as
String objects. DecimalFormat does not allow for this input, it requires Number objects.
This means:
DecimalFormat formatter = new DecimalFormat("#,000.00");
System.out.println(formatter.format(new Double("55555")));
will work, and what you are doing is equivalent to:
DecimalFormat formatter = new DecimalFormat("#,000.00");
System.out.println(formatter.format("55555"));
which throws an Exception.
You should then try to fill your ArrayList with Double objects, instead of String objects.
Let me know if this helped you out.