CS202 Java-43
Partial Array Processing
l
length
is the number of slots assigned to
the array
l
What if the array doesn’t have valid data
in each of these slots?
l
Keep a counter of how many slots have
valid data and use this counter when
processing the array