properties Collections工具类,四大内置函数型接口方法引用
Properties
Properties为Hashtable的子类,要求键与值只能为字符串 ,不能为null,长与 配置文件(与外界交互 的信息) 即内
存与存储介质(文件、数据库、网络、服务器内存等)交互。
** 在资源文件中建立 .properties文件**
在properties文件中以键值对的方式存储
例如:
username = dll
pwd = 123456
//加载properties文件
Properties properties = new Properties();
proper
原创
2020-07-10 21:44:18 ·
144 阅读 ·
0 评论