Browse Source

Convert array moving from java code to native system call

master
Arti Zirk 4 years ago
parent
commit
142b5861a3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/IntSorting.java

+ 1
- 2
src/IntSorting.java 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;
}
}


Loading…
Cancel
Save