Convert array moving from java code to native system call
This commit is contained in:
parent
64073457d5
commit
142b5861a3
@ -129,8 +129,7 @@ public class IntSorting {
|
|||||||
//Move array and insert value
|
//Move array and insert value
|
||||||
if (middle < i) {
|
if (middle < i) {
|
||||||
int tmp = a[i];
|
int tmp = a[i];
|
||||||
for (int j = i - 1; j >= middle; j--)
|
System.arraycopy(a, 0, a, 1, i);
|
||||||
a[j + 1] = a[j];
|
|
||||||
a[middle] = tmp;
|
a[middle] = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user