1 - 20 of 507
public static String nameBan(String userName) {
int start = 0;
int lower = userName.indexOf("a", start);
int upper = userName.indexOf("A", start);
if (lower >= 0 || upper >= 0) {
return "You are banned for having letter 'A' uppercase or "
+ "lowercase in your username!";
} else {
return "You are fine for now...";
}
}
while(true) {
System.out.println("You are BANNED!!!");
}
1 - 20 of 507
© 2010 - 2024
www.planetminecraft.com