View RSS Feed

Sort

Sort array

  1. Sorting Arrays

    by , 03-04-2012 at 11:26 AM
    To sort arrays, static methods are provided by the class java.util.Arrays. Kinds of arrays that are supported by it are as following:

    i. Arrays of object types
    ii. Arrays of primitive types

    It is possible to apply the sorting method to range of arrays or some particular part. It is also applicable to the whole array.

    For object type array comparators shall be provided so that to define it to such kind of sorting. Few Array methods are explained ...
    Categories
    Sort