Arrays class Methods in Java Part -II

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.compare(double[], double[])This method compares two double arrays lexicographically.


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


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


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


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


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


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


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


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


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


Arrays.compareUnsigned(byte[], byte[])This method compares two-byte arrays lexicographically, numerically treating elements as unsigned.


Arrays.compareUnsigned(byte[], int, int, byte[], int, int)This method compares two-byte arrays lexicographically over the specified ranges, numerically treating elements as unsigned.


Arrays.compareUnsigned(int[], int[])This method compares two int arrays lexicographically, numerically treating elements as unsigned.


Arrays.compareUnsigned(int[], int, int, int[], int, int)This method compares two int arrays lexicographically over the specified ranges, numerically treating elements as unsigned.


Arrays.compareUnsigned(long[], long[])This method compares two long arrays lexicographically, numerically treating elements as unsigned.


Arrays.compareUnsigned(long[], int, int, long[], int, int)This method compares two long arrays lexicographically over the specified ranges, numerically treating elements as unsigned.


Arrays.compareUnsigned(short[], short[])This method compares two short arrays lexicographically, numerically treating elements as unsigned.


Arrays.compareUnsigned(short[], int, int, short[], int, int)This method compares two short arrays lexicographically over the specified ranges, numerically treating elements as unsigned.


Arrays.copyOf(boolean[], int)This method copies the specified array, truncating or padding with false (if necessary) so the copy has the specified length.


Arrays.copyOf(byte[], int)This method copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.


Some more Methods of Arrays class Part -I


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