Skip to content

Fix a logical error and set a method to private - #374

Merged
varunu28 merged 2 commits into
TheAlgorithms:masterfrom
GammaBurst101:Fix-error
Jan 31, 2018
Merged

varunu28 merged 2 commits into
TheAlgorithms:masterfrom
GammaBurst101:Fix-error

Conversation

@GammaBurst101

Copy link
Copy Markdown
Contributor

In the code of Others/countwords.java, if the user enter no sentence as input then the code was the giving the number of words to be -1 and also the method used for it was public.
So, I thought to correct it.
Thanks for you time 👍

@varunu28

Copy link
Copy Markdown
Contributor

@GammaBurst101 Thanks for the PR

@varunu28
varunu28 merged commit 4e6a859 into TheAlgorithms:master Jan 31, 2018
@GammaBurst101
GammaBurst101 deleted the Fix-error branch February 1, 2018 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants