Java Password Creation

Testing my code here, and I got it to work…partially. When I enter the password, and I get it wrong, it’ll say password is wrong. What I’m trying to do is do something like main(args); that I did in my I am confused about how to do this in Java post, and it’s not working. How do I force it to go back, since it’s not working