Java tutorial
//package com.java2s; import java.util.Collection; public class Main { public static <T> boolean isSubsetOf(Collection<T> subset, Collection<T> superSet) { for (T t : subset) { if (!superSet.contains(t)) { return false; } } return true; } }