You can use an enhanced for loop: Set<String> set = new HashSet<String>(); //populate set for (String s : set) { System.out.println(s); }. Or with Java 8:
確定! 回上一頁