Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { /** * Adds one wanted config attrib to list of configuration attributes * * @param configs * @param configAttrib * @param value */ public static void setConfig(ArrayList<int[]> configs, int configAttrib, int value) { configs.add(new int[] { configAttrib, value }); } }