Где косяк не пойму. Помогите найти)
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));
String sa = reader.readLine();
String sb = reader.readLine();
String sc = reader.readLine();
int a = Integer.parseInt(sa);
int b = Integer.parseInt(sb);
int c = Integer.parseInt(sc);
int maxx = max(max(a, b), c);
int minn = min(min(a, b), c);
int mid;
if (a!= maxx && a!= minn) mid = a;
else if (b!= maxx && b!=minn) mid =b;
else mid = c;
if (mid > minn)
System.out.println(maxx + " " + mid + " " + minn);
else
System.out.println(maxx + " " + minn + " " + mid);
}
public static int max(int a, int b)
{
if (a > b) return a;
else return b;
}
public static int min(int a, int b)
{
if (a < b) return a;
else return b;
}
}