Java Array Sort intArrayToShortArraySorted(int[] source)

Here you can find the source of intArrayToShortArraySorted(int[] source)

Description

int Array To Short Array Sorted

License

Apache License

Declaration

private static short[] intArrayToShortArraySorted(int[] source) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;

public class Main {
    private static short[] intArrayToShortArraySorted(int[] source) {
        short[] result = new short[source.length];
        for (int i = 0; i < source.length; i++) {
            result[i] = (short) source[i];
        }//  w  ww .ja va2s. co  m
        Arrays.sort(result);
        return result;
    }
}

Related

  1. extractFields(String[] items, int[] fields, String delim, boolean sortKeyFields)
  2. getLeftIndex(float[] sorted, float value)
  3. getMedianIndex(float[] sorted, float value)
  4. getNewSortedIntArray(int[] codePointArray)
  5. getSortedDistinct(int[] values)
  6. multiQuickSort(int[]... arrays)
  7. quickSort(int[] arr, int startIndex, int endIndex)
  8. radixSort(int[] vs)
  9. selectionSort(int[] arr)