Skip to content
Advertisement

Tag: do-while

Password Checker in java with do while

I need to write a password checker which ensures that password correct. Firstly I prompt the user enter the password Secondly, I prompt the user to reenter the password thirdly, I need to check that the passwords are identical But this steps need to repeat 1 through 3 until password is correctly entered twice. Here is my code. But i

Advertisement