class Test { static int offset = 42; void test(){ int avgA = 10 + 20 / 2 - Test.offset - 1; int avgB = 100 + 200 / 2 - Test.offset - 1; } }