I am searching for something like javadocs for the arrays in Java. What methods, what their signatures and what they do. I got this problem, because IDE (Intelij) if you click on the called method of the array with pressed cntrl, shows nothing.
2 Answers
See the Java Language Specification §10.7. Array Members:
The members of an array type are all of the following:
The public final field
length, which contains the number of components of the array.lengthmay be positive or zero.The public method
clone, which overrides the method of the same name in classObjectand throws no checked exceptions. The return type of the clone method of an array typeT[]isT[].All the members inherited from class
Object; the only method ofObjectthat is not inherited is itsclonemethod.
1 Comment
There is no such javadoc.
But arrays don't have any other method than the one in java.lang.Object. They have a single, read-only attribute: length. They implement Serializable and Cloneable.
For useful methods regarding arrays, look at the class java.util.Arrays.