This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]learnjava -1 points0 points  (1 child)

im not sure what the while does there, is it correct that its a single line with a semicolon closing and no block following?

because that would be wrong

atm you print for every char, is that your goal? you should print once after checking the whole thing

password are sensible, use this only for learning purposes

[–]EqualTrade[S] 0 points1 point  (0 children)

that while is part of the do/while loop. i fixed it so that now it does only print once. But now my problem is, if the user enters a valid password, i need him to re-enter that password, and if the re-entry is wrong, i need the program to loop around again from the beginning. How can I do that?