mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
14 lines
288 B
Java
14 lines
288 B
Java
class Test {
|
|
void f(int size, int[] array) {
|
|
for (int i = 0; i < size; i++) {
|
|
int x = i;
|
|
newMethod(array, i, x);
|
|
}
|
|
}
|
|
|
|
private void newMethod(int[] array, int i, int x) {
|
|
int tmp = array[i];
|
|
array[i] = array[x];
|
|
array[x] = tmp;
|
|
}
|
|
} |