Как сделать чтоб работало с отрицательными числами?
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));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if (a > b && a > c)
System.out.print(a + " " + b + " " + c);
else if (b > a && b > c)
System.out.print(b + " " + a + " " + c);
else if (c > b && c > a)
System.out.print(c + " " + b + " " + a);
}
}