mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
10 lines
186 B
Java
10 lines
186 B
Java
class Test {
|
|
void test(){
|
|
int avgA = average(10, 20);
|
|
int avgB = average(100, 200);
|
|
}
|
|
|
|
private int average(int i, int i2) {
|
|
return i + i2 / 2;
|
|
}
|
|
} |