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