The loops in the check methods should be for loops not while loops.
Its too easy to write infinite while loops
Its hard to write infinite for loops
Type: Posts; User: Norm
The loops in the check methods should be for loops not while loops.
Its too easy to write infinite while loops
Its hard to write infinite for loops
Is This code that you are talking about:
System.out.print("Please enter each password: " + (password));
It prints the last password on the line and allows you to enter the next password...
Please copy the full contents of the console window from when the program executes and shows the problem. When OPs makeup what they think is important they often leave out important data. A full...
Post the new code. Somewhere it is being concatenated.
Yes.
The code in post#7 has that.
Did you write this code:
password += keyboard.nextLine();
It concatenates the new input onto the old contents????
Ok got it.
The places where null is printed is because the String variable does not have a value.
Assign them an empty String using =""
Scanner methods can be tricky. The Scanner buffers input...
The posted code does not compile. It has many errors that need to be fixed before the code can be tested.
Did you post all of the code?
That would be the value of the variable if it has not been assigned a value.
Why do you print out the value of password at the end of the message?
There is other code that is setting and...
Can you copy the contents of the console window from when you execute the program to show what you are talking about? I don't see where the code does what you are talking about.
On windows: To...