Hmmm. My code works in all cases as far as I can see in testing, but it keeps failing the last requirement. Any idea?
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String s1 = bufferedReader.readLine(); //Read a string from the keyboard
String s2 = bufferedReader.readLine();
String s3 = bufferedReader.readLine();
int a = Integer.parseInt(s1);
int b = Integer.parseInt(s2);
int c = Integer.parseInt(s3);
if (a > b & b >= c) {
System.out.println(a + " " + b + " " + c);
}
if (a == b & b > c) {
System.out.println(a + " " + b + " " + c);
}
if (c > b & b >= a) {
System.out.println(c + " " + b + " " + a);
}
if (c == b & b > a) {
System.out.println(c + " " + b + " " + a);
}
if (b > a & a >= c) {
System.out.println(b + " " + a + " " + c);
}
if (b > c & c >= a) {
System.out.println(b + " " + c + " " + a);
}
if (a > c & c >= b) {
System.out.println(a + " " + c + " " + b);
}
if (a == c & c > b) {
System.out.println(a + " " + c + " " + b);
}
if (c > a & a >= b) {
System.out.println(c + " " + a + " " + b);
}
if (a == b & b == c) {
System.out.println(a + " " + b + " " + c);
}
}
}