Tag: java array api

class Arrays API Methods

August 18, 2011 · 4 min read
We have seen how [Collections class](http://way2java.com/collections/collections-api-methods/) methods made Java Programmer job easy to operate on data structure elements and we have discussed nearly 25 operations like comparing, sorting and searching etc. with good example codes. Now it is the turn with **Arrays** class. Almost the same methods exist with **Arrays** class but useful to perform on array elements. Array class was introduced with JDK 1.2 and placed in **java.util** package and forms a part of [collections framework](http://way2java.com/collections/java-collections-framework/). Before JDK 1.2, all the array elements manipulations (like shuffling, sorting and searching) were done by the developers from scratch level with enormous looping and if codes.