Добрый день, не могу понять, почему не компилируется код. Создал 3 метода для определения максимума, среднего, и минимума, вызываю их через sout, но что то не работает! Спасибо.
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());
System.out.println(Maximum(int max)+" "+Medium(int med)+ " " + Minimum(int min));
}
public static int Maximum (int a, int b, int c) {
int max = 0;
if ((a>=b)&(a>=c))
return max = a;
else if ((b >= a) & (b >= c))
return max = b;
else if ((c >= a) & (c >= b))
return max = c;
}
public static int Medium (int a, int b, int c) {
int med = 0;
if ((a >= b) & (a <= c))
return med = a;
else if ((b >= a) & (b <= c))
return med = b;
else if ((c >= a) & (c <= b))
return med = c;
}
public static int Minimum (int a, int b, int c) {
int min = 0;
if ((a<=b)&(a<=c))
return min = a;
else if ((b <= a) & (b <= c))
return min = b;
else if ((c <= a) & (c <= b))
return min = c;
}
}