public class Programming {
public static void main(String[] args) {
// Scanner scan = new Scanner( System.in );
int l = 0;
StringBuilder password = new StringBuilder();
l = password.length();
for (l = 1; l < 100; l++) {
if (l > 0 || l < 100) {
System.out.println("Your password has the correct length");
}
}
if (l < 0 || l > 100) {
System.out.println("Your password does NOT have the correct length");
}
for (int i = 0; i < 127; i++) {
}
}
}
我想知道如何运行一个循环来找出 PasswordGenerator 类生成的第一个字符。此处的文档,但每个字符只是 0-127 之间的标准 ASCII 代码,之后我必须附加每个字符以使其成为字符串。密码的长度在 0 到 100(上图)之间。