why is the last box not checking ?
thanks
ok it might not be the most elegant solution so far
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sAge = reader.readLine();
int a = Integer.parseInt(sAge);
String sAge2 = reader.readLine();
int b = Integer.parseInt(sAge2);
String sAge3 = reader.readLine();
int c = Integer.parseInt(sAge3);
if (a <= b && b <= c)
System.out.println(c + " " + b + " " + a);
if (a <= c && c <= b)
System.out.println(b + " " + c + " " + a);
if (b <= c && c <= a)
System.out.println(a + " " + c + " " + b);
if (c <= b && b <= a)
System.out.println(a + " " + b + " " + c);
if (b <= a && a <= c)
System.out.println(c + " " + a + " " + b);
if (c <= a && a <= b)
System.out.println(b + " " + a + " " + c);
// new
if (c == a && a == b)
System.out.println(b + " " + a + " " + c);
}
}