当条件为假或真时为什么要运行

时间:2019-07-14 15:04:33

标签: java

while(true) {
 System.out.println("Enter User Name & Passowrd");
 System.out.println("User Name : ");
 String name=insert.next();
 System.out.println("Password : ");
 String pass=insert.next();
 if(!(name==username)||!(pass==password))
System.out.println("The username or password is 
 wrong , Try again");
 else
break;

}

如果条件为false或true时为什么要运行此

0 个答案:

没有答案