IO流_Properties的特殊功能使用
来源:互联网 发布:mac 安装wget命令 编辑:程序博客网 时间:2024/04/30 15:09
package cn.itcast_08;import java.util.Properties;import java.util.Set;/* * 特殊功能: * public Object setProperty(String key,String value):添加元素 * public String getProperty(String key):获取元素 * public Set<String> stringPropertyNames():获取所有的键的集合 */public class PropertiesDemo2 {public static void main(String[] args) {// 创建集合对象Properties prop = new Properties();// 添加元还给prop.setProperty("张三", "30");prop.setProperty("李四", "40");prop.setProperty("王五", "50");// 遍历集合// public Set<String> stringPropertyNames():获取所有的键的集合Set<String> set = prop.stringPropertyNames();for (String key : set) {String value = prop.getProperty(key);System.out.println(key + "---" + value);}}}
0 0
- IO流_Properties的特殊功能使用
- IO流_Properties的load()和store()功能
- IO流_Properties的概述和作为Map集合的使用
- IO流_字符缓冲流的特殊功能
- Java_IO流_Properties文件的存取
- IO流,File类的使用,mkdir,mkdirs,renameTo,判断功能,获取功能,高级获取功能
- Java 文本格式的解读_properties
- Google 的特殊功能
- Google 的特殊功能
- javascript的特殊功能
- Google 的特殊功能
- 浏览器的特殊功能
- Google的特殊功能
- 加号的特殊功能
- Fiddler的特殊功能
- 黑马程序员_IO流_Properties学习
- javaday50_IO流_Properties学习与应用场景
- IO流的使用
- 复合模式-webMVC
- HTTP基础知识(一)
- mysql 重装过程中遇到的问题
- 全局雾效1
- Spring 中DriverManagerDataSource 和SimpleDriverDataSource 区别
- IO流_Properties的特殊功能使用
- lua os.time用法
- androidstudio模拟器错误emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disabl
- Groovy简介和一点资源
- HDU3594-仙人掌图
- docker同步镜像报错Network timed out while trying to connect
- index_merge引发的死锁排查
- Android ViewDragHelper使用总结
- freeimage例子资料整理