Anyone see a mistake in my code?
It works as it should but not sure whats up
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sNum1 = reader.readLine();
String sNum2 = reader.readLine();
String sNum3 = reader.readLine();
int x = Integer.parseInt(sNum1);
int y = Integer.parseInt(sNum2);
int z = Integer.parseInt(sNum3);
int min = 0;
int mid = 0;
int max = 0;
if (x < y && x < z){
min = x;
if (y < z){
mid = y;
max = z;
}
System.out.println(max +" " +mid +" " +min);
}
else if(y < x && y < z){
min = y;
if (x < z){
mid = x;
max = z;
}
System.out.println(max +" " +mid +" " +min);
}
else if (z < x && z < y){
min = z;
if (y < x){
mid = y;
max = x;
}
System.out.println(max +" " +mid +" " +min);
}
else {
}
}
}