Joke Collection Website - Blessing messages - Java (for loop) programming to achieve information verification when users log in?

Java (for loop) programming to achieve information verification when users log in?

Import java.util. *; \ x0d \ public class PSW verify {/* * \ x0d \ * @ paramargs \ x0d \ */\ x0d \ public static void main (string [] args) {\ x0d \/todo automatic generation method stub \ x0d \ scanner input = new scanner (. \x0d\ String username = "Manage"; \ x0d \ int password = 0000\ x0d \ \ x0d \ for(int I = 3; I>= 1; I-) \ x0d \ {\ x0d \ \ x0d \ system。 Out.println ("Please enter a user name:"); \ x0d \ String name = input . next(); \x0d\ System.out.println ("Please enter password:"); \ x0d \ int pw = input . nextint(); \ x0d \ \ x0d \ if(name . equals(username)& amp; & ampPw = = password) \ x0d \ {\ x0d \ system。 Out.println ("Welcome to our own shopping management system"); \ x0d \ break\x0d\ }\x0d\ else if(i! = 1) \ x0d \ {\ x0d \ system。 Out.println ("User name and password don't match!" ); \x0d\ System.out.println ("You still have the chance of" +(i- 1)+ ",please re-enter:"); \ x0d \ } \ x0d \ else \ x0d \ { \ x0d \ system。 Out.println ("You don't have access to the system!" ) ); \x0d\ } }}\x0d\}