Arrays class Methods in Java Part -III

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.copyOf(char[], int)


Arrays.copyOf(double[], int):


Arrays.copyOf(float[], int)


Arrays.copyOf(int[], int)


Arrays.copyOf(long[], int)


Arrays.copyOfRange(boolean[], int, int)


Arrays.copyOfRange(byte[], int, int)


Arrays.copyOfRange(char[], int, int)


Arrays.copyOfRange(double[], int, int)


Arrays.copyOfRange(float[], int, int):


Arrays.copyOfRange(int[], int, int)


Arrays.copyOfRange(long[], int, int):


Arrays.copyOfRange(short[], int, int)


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


Arrays.deepEquals(Object[], Object[])This method returns true if the two specified arrays are deeply equal to one another.


Arrays.deepHashCode(Object[])This method returns a hash code based on the "deep contents" of the specified array.


Arrays.deepToString(Object[]):


Arrays.equals(boolean[], boolean[])This method returns true if the two specified arrays of booleans are equal to one another.


Arrays.equals(boolean[], int, int, boolean[], int, int)This method returns true if the two specified arrays of booleans, over the specified ranges, are equal to one another.


Arrays.equals(byte[], byte[])This method returns true if the two specified arrays of bytes are equal to one another.



Some more Methods of Arrays class Part -I


Some more Methods of Arrays class Part -II


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