Couple of things going on.
When I'm running the Solution in IntelliJ, nothing is showing up in the build for this task. I have to "stop" the build.
Also - I'm not sure what's wrong with the 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 {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String sa = bufferedReader.readLine();
int a = Integer.parseInt(sa);
String sb = bufferedReader.readLine();
int b = Integer.parseInt(sb);
String sc = bufferedReader.readLine();
int c = Integer.parseInt(sc);
if ( ((a + b) >= c) & ((a+c) >= b) & ((b+c) >= a) )
System.out.println("The triangle is possible.");
else
System.out.println("The triangle is not possible.");
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String sa = bufferedReader.readLine();
int a = Integer.parseInt(sa);
String sb = bufferedReader.readLine();
int b = Integer.parseInt(sb);
String sc = bufferedReader.readLine();
int c = Integer.parseInt(sc);
if ( ((a + b) >= c) & ((a+c) >= b) & ((b+c) >= a) ) {
System.out.println("The triangle is possible.");
} else {
System.out.println("The triangle is not possible.");
}
}
}