CodePudding user response:
System. The out. Println (System. GetProperty (" the user. The name "));CodePudding user response:
List all the keyThe Properties of prop=System. The getProperties ();
For (Object propName: prop keySet ()) {
System. The out. Println (" propName: "+ propName);
}
CodePudding user response:
The above methods can be usedCodePudding user response:
Can only get the user name, don't get the password