Max Value Algorithm
VO2 max (also maximal oxygen consumption, maximal oxygen uptake, peak oxygen uptake or maximal aerobic capacity) is the maximal rate of oxygen consumption quantify during incremental exercise; that is, exercise of increase intensity. The measurement of VO2 max in the laboratory provides a quantitative value of endurance fitness for comparison of individual training consequences and between people in endurance training. British physiologist Archibald Hill introduced the concepts of maximal oxygen uptake and oxygen debt in 1922.Notable contributions were made by Henry Taylor at the University of Minnesota, Scandinavian scientists Per-Olof Åstrand and Bengt Saltin in the 1950s and 60s, the Harvard Fatigue Laboratory, German universities, and the Copenhagen muscle research center among others. Hill and German physician Otto Meyerhof shared the 1922 Nobel prize in Physiology or medicine for their independent work associated to muscle energy metabolism.
package Maths;
public class MaxValue {
/**
* Returns the greater of two {@code int} values. That is, the
* result is the argument closer to the value of
* {@link Integer#MAX_VALUE}. If the arguments have the same value,
* the result is that same value.
*
* @param a an argument.
* @param b another argument.
* @return the larger of {@code a} and {@code b}.
*/
public static int max(int a, int b) {
return a >= b ? a : b;
}
public static void main(String[] args) {
int a = 3;
int b = 4;
System.out.format("max:%d between %d and %d", max(a, b), a, b);
}
}