Java List Value Add add(List a, List b)

Here you can find the source of add(List a, List b)

Description

add

License

Open Source License

Declaration

public static ArrayList<String> add(List<String> a, List<String> b) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static ArrayList<String> add(List<String> a, List<String> b) {
        ArrayList<String> ret = new ArrayList<String>();
        for (String s : a) {
            ret.add(s);//  w  w  w  . ja  va 2  s . com
        }

        for (String s : b) {
            ret.add(s);
        }
        return ret;
    }
}

Related

  1. add(List list, int index, T item)
  2. add(List vector, int[] sparseVector)
  3. add(List list, Object[] array)
  4. add(List data, Object... values)
  5. add(List> target, E value)
  6. add(List list, String value)
  7. add(List aList, T anObj)
  8. add(List aList, T anObject)
  9. add(List current, T toAdd)

  10. HOME | Copyright © www.java2s.com 2016