mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
12 lines
270 B
Java
12 lines
270 B
Java
class Test {
|
|
static int offset = 42;
|
|
|
|
void test(){
|
|
int avgA = averageWithOffset(10, 20);
|
|
int avgB = averageWithOffset(100, 200);
|
|
}
|
|
|
|
private static int averageWithOffset(int x, int x1) {
|
|
return x + x1 / 2 - Test.offset - 1;
|
|
}
|
|
} |