I really don't know why its not working help?

package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String a = bufferedReader.readLine();
String b = bufferedReader.readLine();
String c = bufferedReader.readLine();
int a1 = Integer.parseInt(a);
int b1 = Integer.parseInt(b);
int c1 = Integer.parseInt(c);
if (max(a1,b1,c1) > min(a1,b1,c1) + mid(a1,b1,c1)){
System.out.println("The triangle is possible.");
}
else{
System.out.println("The triangle is not possible.");
}
//write your code here
}
public static int max(int a, int b, int c) {
int m;
if (a > b)
if (a > c)
m = a;
else m = c;
else
if (b > c)
m = b ;
else m = c;
return m;
//write your code here
}
public static int min(int a, int b, int c) {
int m;
if (a < b)
if (a < c)
m = a;
else m = c;
else
if (b < c)
m = b ;
else m = c;
return m;
//write your code here
}
public static int mid(int a, int b, int c) {
// Checking for b
if ((a < b && b < c) || (c < b && b < a))
return b;
// Checking for a
else if ((b < a && a < c) || (c < a && a < b))
return a;
else
return c;
}
}