/*
 *
 * third: That's How I Roll Dice
 *     A dice roller for roleplaying nerds.
 *         http://swords.id.au/third/
 * 
 * Copyright (c) 2010, Brendan Jurd <bj@swords.id.au>
 * All rights reserved.
 * 
 * third is open-source, licensed under the Simplified BSD License, a copy of
 * which can be found in the file LICENSE at the top level of the source code.
 */
package au.id.swords.third2;

class ThirdUtil
{
    /*
     * Append 'content' to the 'builder', separated with 'delimiter'.
     *
     * If this is the first item to be appended to the builder (i.e. it is
     * currently empty), do not insert the delimiter.
     */
    public static StringBuilder append(StringBuilder builder, String delimiter, Object content)
    {
        if(builder.length() > 0)
            return builder.append(delimiter).append(content);
        else
            return builder.append(content);
    }
}

@@ -889,11 +889,273 @@
 );%0A    %7D
+%0A%0A    public static int%5B%5D primitiveIntArray(java.util.Collection%3CInteger%3E c)%0A    %7B%0A        int%5B%5D result = new int%5Bc.size()%5D;%0A        int i = 0;%0A        for(Integer v: c)%0A        %7B%0A            result%5Bi%5D = v;%0A            i++;%0A        %7D%0A        return result;%0A    %7D
 %0A%7D%0A

Add utility method for making primitive int arrays.