Parallel Arrays
 

The parallel arrays, is that each array may be of a different data type.

Parallel arrays are several arrays with the same number of elements that work in tandem to organize data.

dogname

Wally Skeeter Corky Jessie Sadie

round1

18 22 12 17 15

round2

20 25 16 18 17


//Printing the dog competition information:
for(int index = 0; index < dogname.length; index++)
{
System.out.println(dogname[index]);
System.out.println(round1[index]);
System.out.println(round2[index]);
}

(c) Shilpa Sayura Foundation 2006-2017