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 - 2026 Cyprezz LLC
www.planetminecraft.com
Planet Minecraft has a Progressive Web App!
get_app Install PMC APP
Already a member? Sign in
By continuing, you agree to Planet Minecraft's Terms of Use and Privacy Policy

