Package ar.charlycimino.ejemplos
Class Utils
java.lang.Object
ar.charlycimino.ejemplos.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
esMultiplo
(int a, int b) Retorna true si el primer argumento es múltiplo del segundo argumento(package private) static int
leerEnteroEntre
(String mensaje, int min, int max) (package private) static int
obtenerResto
(int num1, int num2)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
leerEnteroEntre
-
esMultiplo
static boolean esMultiplo(int a, int b) Retorna true si el primer argumento es múltiplo del segundo argumento- Parameters:
a
- Un número entero que será dividido porb
b
- Un número entero que dividirá aa
- Returns:
- true si
a
es múltiplo deb
-
obtenerResto
static int obtenerResto(int num1, int num2)
-