Seems right to me.
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 {
//write your code here
Scanner eingabe = new Scanner(System.in);
int a = eingabe.nextInt();
int b = eingabe.nextInt();
int c = eingabe.nextInt();
if ((a + b) < c && (a + c) < b && (b + c) < a){
System.out.println("The triangle is not possible.");
}
else{
System.out.println("The triangle is possible.");
}
}
}