concept Arrays class in category java
appears as: Arrays class, The Arrays class

This is an excerpt from Manning's book Get Programming with Java.
The Arrays class provides numerous methods that make manipulating arrays easy. This particular class is a static class, which means that it is not invoked using dot notation on an object, instead, it can be used to perform operations on one or more arrays. Some examples of the types of manipulations available through this class include:
The code listing used to demonstrate the use of the Arrays class is in Listing 6.3.
Listing 6.3 This code prints and array with and without using the Arrays class
1. package test; 2. import java.util.Arrays; //#A 3. public class ArrayAPIExample { 4. public static void main(String[] args) { 5. double[] prices = {10.50, 5.75, 13.90, 15, 14.85}; 6. System.out.println("Print the value of the prices array " 7. + "without using the Arrays class: " + prices); //#B 8. System.out.println("Print the value of the prices array 9. + "using the Arrays class: " + Arrays.toString(prices)); //#C 10. }For more information about the Arrays class, go to: https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html
Figure 8.6 Screenshot of Java API documentation for the
Arraysclass![]()