Ejercicios del 1 al 6 del cap 4 bloque 4
This commit is contained in:
@@ -8,6 +8,11 @@ public class Utils {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
return sc.nextInt();
|
||||
}
|
||||
public static String solicitarStringScanner(String pregunta) {
|
||||
System.out.println(pregunta);
|
||||
Scanner sc = new Scanner(System.in);
|
||||
return sc.nextLine();
|
||||
}
|
||||
public static double generarNumAleatorio(int multiplicador) {
|
||||
return Math.random() * multiplicador;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user