Java tutorial
//package com.java2s; import java.util.Collection; public class Main { public static boolean isSubset(Collection<?> subset, Collection<?> of) { for (Object obj : subset) { if (!of.contains(obj)) { return false; } } return true; } }