I don't get why the code is not working
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 br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
int c = Integer.parseInt(br.readLine());
descOrder (a, b, c);
}
public static void descOrder(int a, int b, int c) {
int min, mid, max;
if (a > b && a > c){
max = a;
if (b>c) {
mid = b;
min = c;
} else {
mid = c;
min = b;
}
} else if (b > c && b > a) {
max = b;
if (a>c) {
mid = a;
min = c;
}
} else {
max = c;
if (a>b) {
mid = a;
min = b;
}
}}
System.out.println(max + " " + mid + " " + min);
}
}