Code example for ArrayList

Methods: sizetoArray

        ArrayList<EncodedStringValue> list =
                (ArrayList<EncodedStringValue>) mHeaderMap.get(field);
        if (null == list) {
            return null; 
        EncodedStringValue[] values = new EncodedStringValue[list.size()];
        return list.toArray(values);
     * Set EncodedStringValue value to pdu header by header field. 
     * @param value the value 
     * @param field the field 
     * @return the EncodedStringValue value of the pdu header 
     *          with specified header field 
     * @throws NullPointerException if the value is null. 
    public void setEncodedStringValue(EncodedStringValue value, int field) {
Contextual code suggestions in your IDE  Get Codota for Java