the program complies, and I can rewrite so the second to last condition is not met, but I cannot figure out how to make them both met at the same time. What is wrong with my 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 br = new BufferedReader (new InputStreamReader (System.in));
String num1 = br.readLine();
String num2 = br.readLine();
String num3 = br.readLine();
int a = Integer.parseInt(num1);
int b = Integer.parseInt(num2);
int c = Integer.parseInt(num3);
if (a+b>=c && a+c>=b && b+c>=a)
System.out.println("The triangle is possible.");
else if (a+b>c || a+c>b || b+c>a)
System.out.println("The triangle is not possible.");
//else if (a+c>b)
// System.out.println("The triangle is not possible.");
//else
// System.out.println("The triangle is not possible.");//write your code here
}
}

or equal tothe sum of the other two sides, thenno such triangle exists. Hopefully that's enough of a hint. I'm curious as to what your code looked like to make the last one work, and not the second to last.