Created
February 27, 2020 18:21
-
-
Save parzibyte/580e72456fdc7ab2bf2afc19584d6a1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean esPangrama(String cadena) { | |
cadena = cadena.toUpperCase(); // Convertir a mayúscula para simplificar comparaciones | |
String letrasDelAlfabeto = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZ"; | |
for (int x = 0; x < letrasDelAlfabeto.length(); x++) { | |
if (!cadena.contains(Character.toString(letrasDelAlfabeto.charAt(x)))) { | |
return false; | |
} | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment