No, but seriously. I need help xD

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 bu = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(bu.readLine());
int b = Integer.parseInt(bu.readLine());
int c = Integer.parseInt(bu.readLine());
if(a + b > c) {
System.out.println("The triangle is possible.");
}
else if(b + c > a) {
System.out.println("The triangle is possible.");
}
else if(a + c > b) {
System.out.println("The triangle is possible.");
}
else {
System.out.println("The triangle is not possible.");
}
}
}

import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if ( (a+b)>c && (b+c)>a && (c+a)>b){ System.out.println("The triangle is possible."); } else if((a+b)>c || (b+c)>a || (c+a)>b){ System.out.println("The triangle is not possible."); } } }If even one side is larger than the sum of the other two sides, then no such triangle exists." So you shouldn't print "the triangle is possible" just after checking one condition. All three conditions must be correct for the triangle to be possible. you could simply use an '&&' operator to check all three condition and display the line like below: if you still want to do what you are doing then do this: or you can reverse the condition like below: Hopefully any of the three solutions above helps you. If you have questions let me know :), you enter at second condition(else if) and then write at console wrong text. Try to fix itif