Java tutorial
//package com.java2s; import android.net.Uri; import java.util.List; public class Main { private static void addToList(List<Uri> arrayList, List<Uri> arrayList2) { if (arrayList != null && arrayList.size() > 0) { arrayList2.addAll(arrayList); } } }