double[] dvals = { 0.0, 0.5, 1.5, 2.0, 2.5 };
A program can declare as many arrays as needed. Often values are copied back and forth between the various arrays. Here is an example program that uses two arrays:
Fill in the blanks so that the values in valA
are copied into the
corresponding cells of valB
.