Java tutorial
//package com.java2s; import java.util.Collection; public class Main { public static void addAll(final Collection<Integer> coll, final int... values) { for (final int i : values) coll.add(i); } }