Arrays class Methods in Java Part -I

java.util.Arrays

This class contains various methods for manipulating arrays (such as sorting and searching).

This class is a member of the Java Collections Framework.

Some of the Methods of Arrays


Arrays.binarySearch(byte[], byte)This method searches the specified array of bytes for the specified value.


Arrays.binarySearch(byte[], int, int, byte)This method searches a range of the specified array of bytes for the specified.


Arrays.binarySearch(char[], char)This method searches the specified array of chars for the specified value.


Arrays.binarySearch(char[], int, int, char)This method searches a range of the specified array of chars for the specified value.


Arrays.binarySearch(double[], double)This method searches the specified array of doubles for the specified value.


Arrays.binarySearch(double[], int, int, double)This method searches a range of the specified array of doubles for the specified value.


Arrays.binarySearch(float[], float)This method searches the specified array of floats for the specified value.


Arrays.binarySearch(float[], int, int, float)This method searches a range of the specified array of floats for the specified value.


Arrays.binarySearch(int[], int)This method searches the specified array of ints for the specified value.


Arrays.binarySearch(int[], int, int, int)This method searches a range of the specified array of ints for the specified value.


Arrays.binarySearch(long[], long)This method searches the specified array of longs for the specified value.


Arrays.binarySearch(long[], int, int, long)This method searches a range of the specified array of longs for the specified value.


Arrays.binarySearch(short[], short)This method searches the specified array of shorts for the specified value.


Arrays.binarySearch(short[], int, int, short)This method searches a range of the specified array of shorts for the specified value.


Arrays.compare(boolean[], boolean[])This method compares two boolean arrays lexicographically.


Arrays.compare(boolean[], int, int ,boolean[], int, int)This method compares two boolean arrays lexicographically over the specified ranges.


Arrays.compare(byte[], byte[])This method compares two-byte arrays lexicographically.


Arrays.compare(byte[], int, int, byte[], int, int)This method compares two-byte arrays lexicographically over the specified ranges.


Arrays.compare(char[], char[])This method compares two char arrays lexicographically.


Arrays.compare(char[], int, int, char[], int, int)This method compares two char arrays lexicographically over the specified ranges.


Some more Methods of Arrays class Part -II


Some more Methods of Arrays class Part -III


Some more Methods of Arrays class Part -IV


Some more Methods of Arrays class Part -V


Some more Methods of Arrays class Part -VI


Some more Methods of Arrays class Part -VII


Some more Methods of Arrays class Part -VIII


Some more Methods of Arrays class Part -IX


No comments:

Post a Comment