I've tested my work and it seems to work fine but won't validate.
The first condition rules it out if it's ==
The second rules in those whose sums are greater than the part

package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
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());
triangleCalc(a, b, c);
}
public static void triangleCalc(int a, int b, int c) {
int ab = a + b;
int ac = a + c;
int bc = a + c;
if (a == bc || b == ac || c == ab )
System.out.println("The triangle is not possible.");
else if (a < bc && b < ac && c < ab )
System.out.println("The triangle is possible.");
else
System.out.println("The triangle is not possible.");
}
}