This project sums two numbers and compares them to the third number to see if they are equal or not.  

public class EqualSumChecker {
public static void main(String[] args) {
System.out.println(hasEqualSum(1, 1, 1));
System.out.println(hasEqualSum(1, 1, 2));
System.out.println(hasEqualSum(-1, 1, 0));
}


public static boolean hasEqualSum( int a, int b, int c) {
System.out.printf(a + " + " + b + " = " + c + " is ");
return ( a + b == c);
}
}
C:\Users\netadmin\.jdks\openjdk-23.0.1\bin\java.exe "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.2.4\lib\idea_rt.jar=49536:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.2.4\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\netadmin\IdeaProjects\EqualSumChecker\out\production\EqualSumChecker EqualSumChecker
1 + 1 = 1 is false
1 + 1 = 2 is true
-1 + 1 = 0 is true

Process finished with exit code 0