The error is "The program should display the numbers in descending order."
package com.codegym.task.task04.task0420;

/*
Sorting three numbers

*/

import java.io.*;
import java.io.BufferedReader;

public class Solution {
    public static void main(String[] args) throws Exception {

       BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String x = bufferedReader.readLine();
        String y = bufferedReader.readLine();
        String z = bufferedReader.readLine();

        int max = Integer.parseInt(x);
        int mid = Integer.parseInt(y);
        int min = Integer.parseInt(z);
        int temp;

       for(int i=0; i<3;i++)
       {
           if (max>mid&&max>min) {
               if (mid > min) {
                   break;
               } else {
                   temp = mid;
                   mid = min;
                   min = temp;
                   break;
               }
           }
           else {
                   temp = max;
                   max = mid;
                   mid = min;
                   min = temp;
           }



       }
       System.out.println(max+" "+mid+" "+min);
    }
}

}