The question focuses on managing a collection of user reviews for a product. Below is a review of the technical concepts and logic required to solve it. 📋 Problem Overview
: If no comments match the criteria, the method should return an empty list, not null .
This method is more complex, requiring string searching and concatenation. 2_5323305779468442749
: Unlike Part A, you must use a standard for loop (with int i ) because the index number is required for the formatted string.
: You must only include comments that contain an exclamation point ( ! ). The question focuses on managing a collection of
: You must return a double . Ensure you cast to double before dividing by the array length to avoid integer division errors. Part B: collectComments()
: Results are stored and returned in an ArrayList . 💡 Technical Tips This method is more complex, requiring string searching
: A method in the Review class that returns an integer rating.