import java.util.*; class Program6 { public static void main(String[] argv) { //Set halmaz = new TreeSet(); Set halmaz = new HashSet(); halmaz.add("eper"); halmaz.add("málna"); halmaz.add("barack"); System.out.println(halmaz.size()); System.out.println(halmaz.contains("eper")); Iterator it = halmaz.iterator(); while(it.hasNext()) { Object elem = it.next(); } } }