если раскоментить строку 24 выдает ошибку о том что num2 не инициализированна. почему помогите понять
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));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int num2;
int num1 = Math.max(a, Math.max(b, c));
if ((a < b && a > c) || (a < c && a > b))
num2 = a;
else if ((b < a && b > c) || (b < c && b > a))
num2 = b;
else /*if ((c < a && c > b) || (c < b && c > a))*/
num2 = c;
int num3 = Math.min(a, Math.min(b, c));
System.out.print(num1 + " " + num2 + " " + num3);
}
}