Java tutorial
//package com.java2s; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class Main { public static <T> Set<String> toStringSet(Collection<T> a_values) /* */ { /* 443 */Set values = new HashSet(); /* */ /* 445 */for (Iterator i$ = a_values.iterator(); i$.hasNext();) { Object value = i$.next(); /* */ /* 447 */values.add(value.toString()); /* */} /* */ /* 450 */return values; /* */} }