Java List Combine combine(List a, List b)

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

Description

combine

License

Open Source License

Declaration

public static <T> List<T> combine(List<T> a, List<T> 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 <T> List<T> combine(List<T> a, List<T> b) {
        List<T> list = new ArrayList<T>();
        for (T t : a)
            list.add(t);//from   w  w  w  . j  a v  a 2 s.c  o  m
        for (T t : b)
            list.add(t);
        return list;
    }
}

Related

  1. combine(List r, char sep)
  2. combine(List> lists)
  3. combine(List commands, int startAt, int endAt)
  4. combine(List strlist, String delimiter)
  5. combine(List tokens, String separator)
  6. combine(List dest, Collection... src)
  7. combine(List list, int maxK)
  8. combine(List... dests)
  9. combineAfterIndexWithQuotes(List commands, String match)