int i;
ArrayList returnValue = new ArrayList();
for (i = 0; i < args.length; i += 2) {
NameBalancePair nextNameBalancePair = new NameBalancePair();
nextNameBalancePair.name = args[i];
int cents = (new Integer(args[i + 1])).intValue();
nextNameBalancePair.balance = new Money(cents);
returnValue.add(nextNameBalancePair);
}
return returnValue;