1,只有当目录里面为空的时候 才可以删除
2,dir.listFiles(); 可以查看目录的子项 不能查看子项的内容
3,getName(); 可以查看子项的名称
4,目录是没有长度的
5, 统计字符串里面的每个字符出现次数
Map<Charator,Integer> map=
new HashMap<Charator,Integer>();
for(int i=0;i<str.length;i++){
char c=str.charAt(i);
if(map.containsKey(c)){
map.put(c,map.get(c)+1)
}else{
map.put(c,1)
}
}