Java Array Max Value maxLimit(int receiver, int... maxBound)

Here you can find the source of maxLimit(int receiver, int... maxBound)

Description

max Limit

License

Open Source License

Declaration

public static int maxLimit(int receiver, int... maxBound) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int maxLimit(int receiver, int... maxBound) {
        return min(receiver, maxBound);
    }/*from   ww w.  ja  v a2s . c o m*/

    public static int min(int receiver, int... others) {
        int min = receiver;
        for (int other : others) {
            if (min > other)
                min = other;
        }
        return min;
    }
}

Related

  1. maxInt(int... values)
  2. maxInVector(double[] _vector)
  3. maxJoinArray(float[] array1, float[] array2)
  4. maxLength(String... array)
  5. maxLikelihood(int[] i, long[] Xi)
  6. maxLocation(double[] list)
  7. maxNorm(double[] arr)
  8. maxNorm(double[] x1, double[] x2)
  9. maxNormWithAbort(double[] x1, double[] x2, double limit)