Consider following code:
ArrayList aList = new ArrayList(); aList.add(2134); aList.add(3423); aList.add(4234);
You will have to replace the last comma with a ')'. But use a StringBuilder instead of adding strings together.