HashTable的子類properties

来源:互联网 发布:下列属于网络系统安全 编辑:程序博客网 时间:2024/05/21 17:22

HashTable


是一個非常古老的map,是綫程安全的,目前,我們主要使用他的一個子類Properties來讀取配置文件的信息。具體用法:

  Properties pros = new Properties();

pros.load(new FileInputStream(new File(path)));

pros.getProperty("key");

0 0
原创粉丝点击