go to previous page   go to home page   hear noise

Answer:

if ( array.length > 0 )
{
  . . .
  System.out.println("The average is: " + total / array.length  );
}      
else
  System.out.println("The array contains no elements." );

End of the Chapter

That about wraps it up for this chapter. You may wish to review the following topics, unless you are already maxed out.



You have reached the end of the chapter.

go to previous page   go to home page