Properties常用API

Properties


筆試題:  
修改Properties文件中key=name的值修改爲張三:


name=李四
ip=192.168.1.1
age=33






 void load(InputStream inStream) 
          Reads a property list (key and element pairs) from the input byte stream. 


 Object setProperty(String key, String value) 
          Calls the Hashtable method put. 


 void store(OutputStream out, String comments) 
          Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load(InputStream) method. 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章