Consider the following class definitions.
//implementation not shown
//implementation not shown
//constructors and other methods not shown
private Cat[] kitties; //assume kitties has stuff in it
//returns the average age of all of the kitties
public double averageAge( ){
//constructors and other methods not shown
Which of the following code segments shown below could be used to replace
/* blank */ so that method averageAge() will work as intended?
for( int i = 0; i < kitties.length; i++ )
sum += kitties[i].getAge();
return sum / kitties.length;