遍历Properties中的键值对
来源:互联网 发布:斯维尔计价软件 编辑:程序博客网 时间:2024/06/10 08:44
public static void main(String[] args) throws FileNotFoundException, IOException {
File file = new File("f:");
Properties tian = new Properties();
tian.load(new FileInputStream(new File(file,"tian.properties")));
Iterator it=tian.entrySet().iterator();
while(it.hasNext()){
Map.Entry entry=(Map.Entry)it.next();
System.out.println(entry.getKey().toString()+" = "+entry.getValue());
}
}
0 0
- 遍历Properties中的键值对
- Map中的键值对进行遍历
- 遍历map集合中的键值对
- Properties类实现键值对的写入和写出(键值对存储)及Properties集合的遍历
- 如何获取properties后缀配置文件中的键值对
- java修改properties文件中的键值对的值
- 遍历所有Map(json)中的键值对
- Java中利用properties类修改替换properties类型文件中的键值对
- 如何遍历properties文件的键值对并放置到application作用域里
- 如何遍历properties文件的键值对并放置到application作用域里
- jquery遍历json键值对
- jquery遍历json键值对
- js键值对遍历数组
- js遍历键值对数组
- android中的键值对
- 获得配置文件键值对application.properties
- spring application.properties键值对没有引号
- 对List中的Map遍历输出,并且根据map中的某个键值进行排序
- as3关于XML数据载入的两种方法
- 轻松搞定TB级数据,开源GraphLab突破图计算“极限”
- extjs模板的使用
- iptables里的四表五链
- ext4 treePanel 设计节点级联选中
- 遍历Properties中的键值对
- EDM邮件营销之提升打开率方法
- 在程序中修改.csproj将.cs文件包含到项目中
- Android WebApp 開發教學 (4) – PhoneGap Contacts API 使用教學
- oracle写一个函数,参数是一个ID串,返回名称串
- 关于mysql百万100W数据查询优化
- linux 内存链接脚本
- J2EE Struts2 学习笔记003 ---- struts.xml 解析
- 查看linux中shell的几种方法汇总