Java Program to Find Current Working Directory
The getproperty() methods defined in System Class in Java which is used to retrieve the value of the property named in the argument list. This method property is specified by the key which accepts the parameter. If the property does not exist, this version of getProperty returns null.
public static String getProperty(String key)
- key: key whose system property we want
- System property as specified the key
- Null: if there is no property present with that key.