Tag: java array contains

Java Arrays class

May 4, 2013 · 1 min read
###### Java Arrays class: Here comes a confusion for a new Java learner with **array**, **array**s and **Arrays**. He uses all interchangeably, meaning the same. He uses anyone just to refer arrays of Java. He thinks array and arrays are singular and plural. Of course, he is right. Problem comes once he knows there is a class in Java called **Arrays**. If you say arrays, I mean you are talking general arrays and if you say Arrays, I mean your are referring [class Arrays](http://way2java.com/collections/class-arrays-api-methods/) (from java.util package).

Search array element binarySearch()

September 8, 2011 · 2 min read
**Arrays.binarySearch()** method is useful to find out the index number of an element in the array.