如图是编程要求和我的代码
输出结果和预期输出完全一样,但是一直说12行有语法错误不让过,搜了半天也没查出来错在哪里
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count = 0;
while(count < 3) {
String pwd = in.next();
if(pwd.length() >= 6) {
System.out.println(pwd + " success!");
break;
} else {
count++;
}
}
if(count >= 3) {
System.out.println("ops!");
}
}