double[] dvals = { 0.0, 0.5, 1.5, 2.0, 2.5 };
A program can have any number of arrays in it. Often values are copied back and forth between the various arrays. Here is an example program that uses two arrays:
class arrayEg4
{
public static void main ( String[] args )
{
int[] valA = { 12, 23, 45, 56 };
int[] valB = new int[4];
__________ = ____________ ;
__________ = ____________ ;
__________ = ____________ ;
__________ = ____________ ;
}
}