public class ReviewAnalysisRunner { public static void main(String[] args) { ReviewAnalysis x = new ReviewAnalysis(5); x.add(0, new Review(4, "Good! Thx") ); x.add(1, new Review(3, "OK site") ); x.add(2, new Review(5, "Great!") ); x.add(3, new Review(2, "Poor! Bad") ); x.add(4, new Review(3, "") ); System.out.println( x.getAverageRating() ); System.out.println( x.collectComments() ); } } /* output 3.4 [0-Good! Thx., 2-Great!, 3-Poor! Bad.] */