diff --git a/src/java/com/samskivert/util/ArrayUtil.java b/src/java/com/samskivert/util/ArrayUtil.java index f8d10f20..c525d9b2 100644 --- a/src/java/com/samskivert/util/ArrayUtil.java +++ b/src/java/com/samskivert/util/ArrayUtil.java @@ -755,6 +755,18 @@ public class ArrayUtil return nvalues; } + /** + * Creates a new array one larger than the supplied array and with the + * specified value inserted into the last slot. + */ + public static float[] append (float[] values, float value) + { + float[] nvalues = new float[values.length+1]; + System.arraycopy(values, 0, nvalues, 0, values.length); + nvalues[values.length] = value; + return nvalues; + } + /** * Creates a new array one larger than the supplied array and with the * specified value inserted into the last slot. The type of the values