Skip to content

Commit da8f5b9

Browse files
committed
Week2. getMovieSize() + getRaterSize()
1 parent cc27b55 commit da8f5b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Week2/src/SecondRatings.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,14 @@ public SecondRatings(String moviesFileName, String ratingsFileName) {
3434
public int getMovieSize() {
3535
return this.myMovies.size();
3636
}
37+
38+
/**
39+
* A public method which returns the number of raters that were read in and stored in the
40+
* ArrayList of type Rater.
41+
*
42+
* @return int number of movies
43+
*/
44+
public int getRaterSize() {
45+
return this.myRaters.size();
46+
}
3747
}

0 commit comments

Comments
 (0)