Java Array Sort sort(byte[] b, int pos)

Here you can find the source of sort(byte[] b, int pos)

Description

sort

License

Open Source License

Declaration

private static void sort(byte[] b, int pos) 

Method Source Code

//package com.java2s;

public class Main {
    private static void sort(byte[] b, int pos) {
        byte[] tmp = new byte[pos];
        System.arraycopy(b, 0, tmp, 0, pos);
        System.arraycopy(b, pos, b, 0, b.length - pos);
        System.arraycopy(tmp, 0, b, b.length - pos, pos);
    }/* ww  w  . j  a v a 2  s.co  m*/
}

Related

  1. quickSort(int[] arr, int startIndex, int endIndex)
  2. radixSort(int[] vs)
  3. selectionSort(int[] arr)
  4. sort( final Item[] values, final Item[] auxiliary, final int first, final int last)
  5. sort( float[] array)
  6. sort(double s[], int idx[])
  7. sort(double[] a, int[] b)
  8. sort(double[] coords1, int length1, double[] coords2, int length2, int[] array)
  9. sort(double[] data)