Does enum retain static values and if so how do I create a new instance/reset it?
I wrote a string validator to check username/password.
I pass a string, a min required length. The length of the first string i pass is 4 (username) and the second time 8 (password).
I then store these values in a companion object and let my return variable, an Enum with a string value, use the min length variable reference from the companion object to specify min length in the string message.
The problem is the first time it works as intended and the string writes 4 as min length.
The...