// [[[start:iteration-lists-using-procedures]]]
final IntArrayList list = prepare(10);
// Lists also support iteration through [type]Procedure interfaces.
// The apply() method will be called once for each element in the list.
list.forEach(new IntProcedure()
{
public void apply(int value)
{
System.out.println(value);
}