System: setProperty(String key, String value)
public class Main { public static void main(String[] args) { System.setProperty("password", "myPassword"); System.out.println(System.getProperty("password")); } }