The "ReviewAnalysis" problem asks you to manipulate an array of Review objects. You are required to implement two specific methods that handle data processing and string formatting. Key Components : An array containing Review objects.
: If a comment does not end with a period ( . ) or an exclamation point ( ! ), you must append a period to the end. 2_5323305779468442749
: A method in the Review class that returns an integer rating. The "ReviewAnalysis" problem asks you to manipulate an
: You must return a double . Ensure you cast to double before dividing by the array length to avoid integer division errors. Part B: collectComments() 2_5323305779468442749
: The resulting strings must follow the format: index-comment .