The java.util.Properties.getProperty(String key) method searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null if the property is not found.
Syntax:public String getProperty(String key)
Example:import java.util.*;
public class PropertiesDemo {
public static void main(String[] args) {
Properties prop = new Properties();
// add some properties
prop.put("Height", "200");
prop.put("Width", "150");
prop.put("Scannable", "true");
// get two properties and print them
System.out.println("" + prop.getProperty("Scannable"));
System.out.println("" + prop.getProperty("Width"));
}
}
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 949 / 159176057. Delta: 0.00329 с