see code

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 side1 = Integer.parseInt(reader.readLine());
int side2 = Integer.parseInt(reader.readLine());
int side3 = Integer.parseInt(reader.readLine());
if(side1 + side2 > side3) {
if(side2 + side3 > side1) {
if(side3 + side1 > side2) {
System.out.println("The triangle is possible.");
}
}
} else {
System.out.println("The triangle is not possible.");
}
}
}