Create a user-defined property or change the value of the current property in Java
Description
The following code shows how to create a user-defined property or change the value of the current property.
Example
//from ww w .jav a 2 s. com
public class Main {
public static void main(String[] args) {
System.setProperty("password", "myPassword");
System.out.println(System.getProperty("password"));
}
}
The code above generates the following result.