Skip to content
Advertisement

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 cant understand the logic of repeat 1 through 3

JavaScript

Advertisement

Answer

Try this

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement