вроде должно всё работать , а последнее условие пишет что не соблюдается
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>=b & a>=c & b<=c)
System.out.println(a+ " " +b+" " +c);
else if (a>=b & a>=c & b>=c)
System.out.println(a+ " " +c+" " +b);
else if (a<=b & a>=c & b>=c)
System.out.println(b+ " " +a+" " +c);
else if (a<=b & a<=c & b>=c)
System.out.println(b+ " " +c+" " +a);
else if (a>=b & a<=c & b<=c)
System.out.println(c+ " " +a+" " +b);
else
System.out.println(c+ " " +b+" " +a);
}
}