Class CodeGenerator
java.lang.Object
CodeGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a master code with a random 3 digit lock code and clearance word.CodeGenerator(String lockCode, String clearanceCode) Creates a master code with lockCode as the lock code and clearanceCode as the clearance word. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the clearance wordReturns the value of the lock codetoString()
-
Constructor Details
-
CodeGenerator
public CodeGenerator()Creates a master code with a random 3 digit lock code and clearance word. Precondition: the first digit of the lock code will never be 0 and the clearance word is picked randomly from a list of words. -
CodeGenerator
-
-
Method Details
-
getLockCode
-
getClearanceWord
-
toString
-