I have tried the "Rule of the triangle" several times in several ways but still I get errors. I will appreciate anyone that will point me towards the right direction, because I know the error exists in the condition section but I just can't figure it out.
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());
if(a>=(b+c) && b>=(a+c) && c>=(b+a)){
System.out.println("The trianlge is not possible.");
}else{
System.out.println("The trianlge is possible.");
}
}
}