求问大神最后一条为何过不了呢?
package zh.codegym.task.task04.task0420;
/*
对三个数字进行排序
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int max1 = a > b ? a : b;
int max2 = max1 > c ? max1 : c;
int mix1 =a < b ? a : b;
int mix2 = mix1 < c ? mix1 : c;
if(a!= mix2 && a!=max2){
System.out.println(max2+" "+a+" "+mix2);
}else if(b!= mix2 && b!=max2){
System.out.println(max2+" "+b+" "+mix2);
}else if(c!= mix2 && c!=max2){
System.out.println(max2+" "+c+" "+mix2);
}
}
}