Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Simple Java question 4

BunkerHillBroad
BunkerHillBroad 


Suppose you are given a two-dimensional array of String objects named foobar that has been properly initialized. Write a nested for loop that will correctly compute the average length of all the String objects stored inside foobar. Remember — the foobar array could contain any number of rows, and each row could contain a different number of String objects. Attachments
Tags Clarifications

Answers

Simple Java question 4 - Solution

mariobeka
mariobeka 



Open the solution file with any text editor. Attachments Screenshots
Purchase Answer

Problem Solution 4

uetian_cute
uetian_cute 



Contains the solution of problem Attachments
ProblemSolution4.zip (1 K) Download
Preview
// TODO Auto-generated method stub double total_length=0; double total_objects=0; String [][]Foobar={{"abc","cdf","defghr"}}; for(int i=0;i<Foobar.length;i++)

Screenshots
Purchase Answer