I thought I carefully covered the angles.
the validation says:
Error.
If a triangle with the specified sides could exist, you need to display: "The triangle is possible."
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
int a = input.nextInt(), b = input.nextInt(), c = input.nextInt();
if ((a + b > c) && !(a >= c || b >= c)) {
System.out.println("The triangle is possible.");
} else if ((a + c > b) && !(a >= b || c >= b)) {
System.out.println("The triangle is possible.");
} else if ((b+c>a)&& !(b>=a || c>=a)){
System.out.println("The triangle is possible.");
}else{
System.out.println("The triangle is not possible.");
}
}
}