вроде много раз просмотрел алгоритим, ошибок не нашел. Компилятор пишет , что переменная b1 не проиницилизирована так же с переменными b2,b3
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 {
BufferedReader pup = new BufferedReader(new InputStreamReader(System.in));
String bruh = pup.readLine();
int a = Integer.parseInt(bruh);
String bruh1 = pup.readLine();
int b = Integer.parseInt(bruh1);
String bruh2 = pup.readLine();
int c = Integer.parseInt(bruh2);
int b1, b2, b3;
if ((a >= b)&& (a >=c)){
b1 = a;
if (b >= c){
b2 = b;
b3 = c;
}
else{
b2 = c;
b3 = b;
}
}
if ((b >= a)&& (b >=c)){
b1 = b;
if (a >= c){
b2 = a;
b3 = c;
}
else{
b2 = c;
b3 = a;
}
}
if ((c >= b)&& (c >=a)){
b1 = c;
if( b >= a){
b2 = b;
b3 = a;
}
else{
b2 = a;
b3 = b;
}
}
System.out.println(b3);
}
}