this are the attributes I need to construct
So my prof wants us to make those attributes in order:
NOT changeable, not allowed to be NULL or blank spaces
NOT changeable, allowed to be NULL
NOT changeable, not allowed to be NULL
changeable
changeable, with NULL initialized
So my first guess was to put a final before the attributes 1-3 but there are some errors there:
The value of the field PasswordEntry.passwordComplexity is not usedJava(570425421)
The blank final field passwordComplexity may not have been initializedJava(33554513)
And for the last one; I just tried to do this:
private String password = NULL;
The automatic solution was to to put
private static final String NULL = null;
in the beginning which cant be the right way.
I am confused as to how I am supposed to do this, I hope someone can help me.
Dennis Gremory is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.