View RSS Feed

Sorting

People talking about Comparators and Comparables. To do that we have to arrange stuff in specific manner.

  1. Java ArrayList : Generics & Sorting

    by , 07-21-2011 at 06:20 AM


    Abstract

    Java ArrayList (ArrayList (Java 2 Platform SE 5.0)) class is a fastest and easiest way to represent one-dimensional array. ArrayList not synchronized, that is cross thread access may cause problems. It holds an ordered item sequence of items (objects) like an array, but there are differences:

    • Size of an ArrayList could change dynamically, by adding or removing elements
    • An ArrayList can hold only object references, not primitives

    ...
    Attached Thumbnails Attached Files