Please see if I missed anything. The last condition is not meeting.
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 n1 = reader.readLine();
String n2 = reader.readLine();
String n3 = reader.readLine();
int a = Integer.parseInt(n1);
int b = Integer.parseInt(n2);
int c = Integer.parseInt(n3);
if(a>b && b>c)
System.out.println(a + " " + b + " " + c);
else if(a>c && c>b)
System.out.println(a + " " + c + " " + b);
else if(b>a && a>c)
System.out.println(b + " " + a + " " + c);
else if(b>c && c>a)
System.out.println(b + " " + c + " " + a);
else if(c>a && a>b)
System.out.println(c + " " + a + " " + b);
else if(c>b && b>a)
System.out.println(c + " " + b + " " + a);
}
}