📜  如何在java代码示例中比较3个数字

📅  最后修改于: 2022-03-11 14:52:32.084000             🧑  作者: Mango

代码示例1
if (a > b && a > c) {
    //Here you determine second biggest, but you know that a is largest
}

if (b > a && b > c) {
    //Here you determine second biggest, but you know that b is largest
}    

if (c > b && c > a) {
    //Here you determine second biggest, but you know that c is largest
}