Repository navigation
Added stubs to LargestSeriesProductCalculator - #869
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great @delbertlegg! Thanks for tackling this :)
I've left a couple of comments, but they're all minor things. Let me know if you have any questions and feel free to disagree with any of my comments :)
| public class LargestSeriesProductCalculator { | ||
| public LargestSeriesProductCalculator(String inputNumber) { | ||
| throw new UnsupportedOperationException | ||
| ("Delete this statement and write your own implementation."); |
There was a problem hiding this comment.
This should all be on one line :)
| @@ -1,5 +1,11 @@ | |||
| public class LargestSeriesProductCalculator { | |||
There was a problem hiding this comment.
Both the class and the methods can be made package private. The class's access modifier was there from before so that's not at all your fault :) But it would be a nice improvement to make while we're modifying the class. It's generally best practice to be as restrictive as possible with access modifiers :)
|
|
||
|
|
||
|
|
||
| public long calculateLargestProductForSeriesLength(long numberOfDigits) { |
There was a problem hiding this comment.
numberOfDigits should be an int :)
9fb8d0c to
0f87d89
Compare
|
Issues with rebase...sorry. Will clean up. |
Make changes per review comments Made class and methods package private
0f87d89 to
38b75f7
Compare
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great! Thanks for taking the time to do this @delbertlegg! :)
|
Will merge as soon as the build finishes :) |
|
@FridaTveit No problem! Found this via Hacktoberfest and is a really cool project. Would like to contribute more substantially in the future if there's an opportunity. |
|
That's great! We always need people to help contribute so feel free to do any more issues or do any other contribution that you feel like :) And of course if you have any questions then just ask :) |
Fixes #549
Reviewer Resources:
Track Policies