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