-
-
Save parzibyte/81bbf4e30c64a93c4db90a9fd125c5c6 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
private static String obtenerSuposicionDeUsuario(int longitud) { | |
String eleccion = ""; | |
while (eleccion.length() != longitud) { | |
System.out.println("¿Cuál crees que es la contraseña?: "); | |
Scanner sc = new Scanner(System.in); | |
eleccion = sc.nextLine(); | |
} | |
return eleccion; | |
} | |
private static boolean obtenerConRepetidos() { | |
System.out.println("¿Puede incluir repetidos? 1 = sí. 0 = no "); | |
return new Scanner(System.in).nextInt() == 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment