Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2018
Merged

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

merged 2 commits into from
Jan 31, 2018

Conversation

GammaBurst101
Copy link
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
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