The answer uses Pattern & Matcher to locate each word. This answer works
fine, however, it can be simplified by using String#split(String)
instead with a simpler regex.
Also, let’s add comments for each stream operation to elaborate on
what’s happening at each step of the stream operation.
* Rail Fence Cipher completed
* Added @Ignore in the test file
* Build fail corrections
* Build Fail
* Added .keep file, the abscence caused build to fail
* Changes done as per the recent conventions
* Modified the config.json adding topics as well
* Update config.json
* rail-fence-encoding: add to config.json
* rail-fence-cipher: improve reference solution
* rail-fence-cipher: update with @FridaTveit's suggestions.
* Initial commit for new exercise proverb
* Add first test and source code passing it
* Add second test with short chain of consequences
* Add test for longer chain of events
* Add test asserting dictionary is not hard coded
* Add test for entire proverb
* All tests and source code complete
* Add stub due to low difficulty level
* Add proverb to config.json and settings.gradle
* Limit scope to package-private asccess level
* Set config to unlock proverb by two-fer
* Update tests to match exercism canonical data
* Fix starter implementation to only include thrown exception
* Add StringBuilder and basic refactoring
* Fix test spacing
* Refactor out extraneous if-statement
* Add curly braces around if-statement
Add hints to exercises without starter implementation (#1084)
* Add hints to exercises without starter implementation
As exercises with difficulty 5 are the first exercises without starter
implementation, they should have a hints file explaining how to fix the
compiler errors that occur when an exercise doesn't have any starter
implementation.
This should be detailed in the policies doc.
* flatten-array: regenerate README
Also update description for how to generate readme as it was lacking
detail.
matrix: make classes and methods package private in reference solution. Resolved the issue (#1083)
* made the class as the package private and the removed the public access modifier
* made the class as the package private and the removed the public access modifier
* removing the extra spaces
* removed the access modifier of the class Hamming and also the methods involving it
* added the private access modifier for the methods in Hamming class
meetup: removed public class modifiers as per #1081
* "#1081 Removed public class modifiers"
* Changed Meetup method to private per comments on Pull Request #1082
* Made Meetup method public again as it did not pass the checks for Pull Request #1082.
* Changed MeetupTest.java to private per comments on Pull Request #1082
* Made MeetupTest public again as it failed testing.
* Made Meetup method package-private per comments on Pull Request #1082.
* Corrected access modifiers per suggestions on Pull Request #1082.
Removed package-private from Meetup method and removed private from
cycleToPrev and cycleToNext methods.
* Added private access levels back to cycleToPrev and cycleToNext.
Per feedback on pull request #1082 added the private access levels back
to these two methods.