Arrays Class
Package: java.util
The Arrays
class provides a collection of static
methods that are useful for working with arrays.
For more information about arrays, see Arrays in Part 2.
Because the Arrays
class provides only static methods, it has no constructors.
Methods
Method |
Description |
|
Searches for the specified key value in an array. The return value is the index of the element that matches the key. The method returns |
|
Returns an array that’s a copy of |
|
Does what the |
|
Returns |
|
Returns |
|
Fills the array with the specified ... |
Get Java For Dummies Quick Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.