Here you can find the source of minMax(long x, long y, boolean max)
Parameter | Description |
---|---|
x | a parameter |
y | a parameter |
max | a parameter |
private static long minMax(long x, long y, boolean max)
//package com.java2s; /**/*from ww w . j av a 2s . c o m*/ * Copyright (c) 2011 Martin Geisse * * This file is distributed under the terms of the MIT license. */ public class Main { /** * @param x * @param y * @param max * @return */ private static long minMax(long x, long y, boolean max) { if (max) { return (x > y ? x : y); } else { return (x < y ? x : y); } } }