Возможно переменная не проинициализирована.
Почему? На что нужно обратить внимание?
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());
int max;
int min;
int avr;
if (a >= b && a >= c)
max = a;
else if (b >= a && b >= c)
max = b;
else if (c >= a && c >= b)
max = c;
if (a <= b && a <= c)
min =a;
else if (b <= a && b <= c)
min = b;
else if (c <= a && c <= b)
min = c;
if (max >= a && a>= min)
avr = a;
else if (max >= b && b>= min)
avr=b;
else if (max >= c && c>= min)
avr=c;
System.out.print(max +" "+ avr + " "+ min);
}
}