Math.min или max пока не хочу трогать
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(in.readLine());
int b = Integer.parseInt(in.readLine());
int c = Integer.parseInt(in.readLine());
int min;
int mid;
int max;
if (a <= b && a <= c){
min = a;
}else if (b <= a && b <= c){
min = b;
}else {min = c;}
if (a >= b && a >= c){
max = a;
}else if (b >= c && b >= a){
max = b;
}else {max = c;}
if (min <= a && a <= max){
mid = a;
}else if (min <= b && b <= max){
mid = b;
}else {mid = c;}
System.out.println (max + " " + mid + " " + min);
}
}