Question: Please code in Java A string contains the information of actors. The string has the following format: firstName 1.lastName1.age1.netWorth1, numberOf Movies 1, firstName2, lastName2, age2.netWorth2,
Please code in Java

A string contains the information of actors. The string has the following format: "firstName 1.lastName1.age1.netWorth1, numberOf Movies 1, firstName2, lastName2, age2.netWorth2, numberOfMovies2, firstName 3.lastName3.age3.netWorth3,numberOfMovies3, ..." 1. Write a method named avgAge that takes a String in the above format and returns the average age per actor. 2. Write a method named totalNetWorth that takes a String in the above format and returns the total network of the actors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
