Почему не работает объявление метода внизу? помогите что не так?
package com.javarush.task.task04.task0419;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Максимум четырех чисел
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String number1 = reader.readLine();
String number2 = reader.readLine();
String number3 = reader.readLine();
String number4 = reader.readLine();
int a = Integer.parseInt(number1);
int b = Integer.parseInt(number2);
int c = Integer.parseInt(number3);
int d = Integer.parseInt(number4);
if (a > b & a > c & a > d) {
System.out.println(a);
}
else {
if (b > a & b > c & b > d) {
System.out.println(b);
}
else {
if (c > a & c > b & c > d) {
System.out.println(c);
}
else {
if (d > a & d > b & d > c) {
System.out.println(d);
}
else {
if (Max1 = c | Max1 = d | Max2 = a | Max2 = d | Max3 = a | Max3 = b | Max4 = b | Max4 = d | Max5 = b | Max5 = c | Max6 = a | Max6 = c) {
System.out.println(a);
}
}
}
}
}
public static int Max1(int a, int b){
if(a > b & a != b) return a;
else return b;
public static int Max2(int b, int c){
if(b > c & b != c) return b;
else return c;
public static int Max3(int c, int d){
if(c > d & c != d) return c;
else return d;
public static int Max4(int a, int c){
if(a > c & a != c) return a;
else return c;
public static int Max5(int a, int d){
if(a > d & a != d) return a;
else return d;
public static int Max6(int b, int d){
if(b > d & b != d) return b;
else return d;
}
}