Write a piece of code that computes the average String length of the elements of an array

Question:

Write a piece of code that computes the average String length of the elements of an array of Strings . For example, if the array contains {"belt", "hat", "jelly", "bubble gum"}, the average length is 5.5.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: