Convert array moving from java code to native system call

This commit is contained in:
Arti Zirk 2016-09-27 15:05:55 +03:00
parent 64073457d5
commit 142b5861a3
1 changed files with 1 additions and 2 deletions

View File

@ -129,8 +129,7 @@ public class IntSorting {
//Move array and insert value
if (middle < i) {
int tmp = a[i];
for (int j = i - 1; j >= middle; j--)
a[j + 1] = a[j];
System.arraycopy(a, 0, a, 1, i);
a[middle] = tmp;
}
}