Class Utils

java.lang.Object
ar.charlycimino.ejemplos.Utils

public class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • leerEnteroEntre

      static int leerEnteroEntre(String mensaje, int min, int max)
    • 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 por b
      b - Un número entero que dividirá a a
      Returns:
      true si a es múltiplo de b
    • obtenerResto

      static int obtenerResto(int num1, int num2)