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
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user