Java Vector Add addArray(Vector vector, Object[] array)

Here you can find the source of addArray(Vector vector, Object[] array)

Description

add Array

License

Common Public License

Declaration

static Vector addArray(Vector vector, Object[] array) 

Method Source Code

//package com.java2s;
/*//  ww  w  .j av  a  2s .  c  o  m
 // $Id: //open/mondrian/src/main/mondrian/olap/fun/FunUtil.java#18 $
 // (C) Copyright 2002 Kana Software, Inc.
 // This software is subject to the terms of the Common Public License
 // Agreement, available at the following URL:
 // http://www.opensource.org/licenses/cpl.html.
 // (C) Copyright 2002 Kana Software, Inc. and others.
 // All Rights Reserved.
 // You must accept the terms of that agreement to use this software.
 //
 // jhyde, 3 March, 2002
 */

import java.util.*;

public class Main {
    static Vector addArray(Vector vector, Object[] array) {
        for (int i = 0; i < array.length; i++) {
            vector.addElement(array[i]);
        }
        return vector;
    }
}

Related

  1. add(List> vectors)
  2. add(Vector left, Vector right)
  3. Add(Vector V, String S1, String S2, String S3)
  4. addAll(Vector vector, Object[] copyFrom)
  5. addToVector(Vector from, Vector to)
  6. vectorAdd(double[] v1, double[] v2)
  7. vectorAdd(double[] v1, double[] v2)
  8. vectorAdd(float[] v1, float[] v2)