Не выполняется последнее условие задания. Вывод соответствует требованиям.
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if(a<=min(b,c)){
System.out.println(a+" "+min(b,c)+" "+max(b,c));
}else if(b<=min(a,c)){
System.out.println(b+" "+min(a,c)+" "+max(a,c));
} else if(c<=min(a,b)) {
System.out.println(c+" "+min(a,b)+" "+max(a,b));
}
}
private static int min(int a, int b){
return (a <= b) ? a : b;
}
private static int max(int a, int b){
return (a >= b) ? a : b;
}
}