|
|
Posted on
2009-10-10 08:26
刘政道
阅读( 156)
评论()
收藏
举报
 Code 1 import java.util.Map; 2 import java.util.HashMap; 3 4 public Map GROUPS = new HashMap(); 5 public Map getGROUPS() 6 { 7 return this.GROUPS; 8 } 9 10 //this.GROUPS.clear(); 11 this.GROUPS.put("system", false); 12 13 for(Map.Entry entry : this.GROUPS.entrySet()) 14 { 15 if(entry.getValue()) 16 { 17 System.out.println(String.valueOf(entry.getKey())); 18 } 19 }
|