Person Contracts and Default Values
Added Interace for Persons and Contracts. Used methods with default values for changing Estates or EstateAgents.
This commit is contained in:
@ -51,6 +51,18 @@ class FormUtil {
|
||||
password = String.valueOf(System.console().readPassword());
|
||||
return password;
|
||||
}
|
||||
/**
|
||||
* Reads a password from the console.
|
||||
*
|
||||
* @return the entered password
|
||||
*/
|
||||
static String readPassword(String oldPassword) {
|
||||
String password;
|
||||
System.out.print("Password: ");
|
||||
password = String.valueOf(System.console().readPassword());
|
||||
if(password.equals(""))return oldPassword;
|
||||
return password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads an integer from the console.
|
||||
|
||||
Reference in New Issue
Block a user