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