Update RedditPost.java

updated newScore type from int to double
This commit is contained in:
Louis Vallat 2019-04-23 12:01:44 +02:00
parent 4f790f7c61
commit 97624621ae

View File

@ -135,7 +135,7 @@ public abstract class RedditPost {
* Update post's score. * Update post's score.
* @param newScore the new score. * @param newScore the new score.
*/ */
public void updateScore(int newScore) { public void updateScore(double newScore) {
this.score = newScore; this.score = newScore;
} }