for(String str : set) { System.out.println(str); }
for (Iterator iter = set.iterator(); iter.hasNext();) { String str = (String)iter.next(); System.out.println(str); }
时间: 2024-10-08 10:10:42
for(String str : set) { System.out.println(str); }
for (Iterator iter = set.iterator(); iter.hasNext();) { String str = (String)iter.next(); System.out.println(str); }