Посмотрите пожалуйста код
package com.javarush.task.task04.task0415;
/*
Правило треугольника
*/
import org.omg.CORBA.INTERNAL;
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());
if (a<=(b+c) && b<=(a+c) && c<=(a+b)){
System.out.println("Треугольник существует.");
}
else System.out.println("Треугольник не существует.");
}
}