import java.util.function.Predicate; class X { int x = Math.random() > 0.5 ? test(1, 2, 3) + 1 : 0; int test(int a, int b, int c) { int one = a * a + b * b; int two = c * c; return one / two; } }