if(!set.isEmpty()){ System.out.println(set.iterator().next()); }
List list = new ArrayList(set); System.out.println(list.get(0));