Constructor | Description |
---|---|
Properties() | To make an empty property list without default values. |
Properties(Properties) | To make an empty property list with default values. |
Methods | Description |
---|---|
getProperty(String) | To hunt down the property with the predetermined key in the property list. |
list(PrintStream) | To list out the output stream. |
list(PrintWriter) | To list out the output stream. |
load(InputStream) | To read the list of the property from input stream. |
propertyNames() | An enumeration of all the keys will be returned. |
System.out
is used to display the elements which were in the list.
Output: Now compile the code result will be as follows.
[java]
-- listing properties --
splessons=150
SPlessons=200
Scannable=true
[/java]
java.util.Properties.list()
method does not return any value.
Output: Now compile the code result will be as follows.
[java]
-- listing properties --
splessons=150
SPlessons=200
Scannable=true
[/java]
java.util.Properties.list()
method is utilized for debugging.java.util.Properties.propertyNames()
method