Get minimum for three integer without if statements - Android java.lang

Android examples for java.lang:Integer

Description

Get minimum for three integer without if statements

Demo Code

import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;

public class Main{

    private static int minimum(int a, int b, int c) {
        return Math.min(Math.min(a, b), c);
    }//from ww w  .j av  a2  s  .  c  o  m

}

Related Tutorials