New to Java (and programming in general) and trying to accept a sentence from the command line to count the consonants, vowels, and punctuation. What code do I need to perform the following?
1) Seperate each word so that it runs through the swtich to perform a count
2) Loop back to get each subsequent word until the sentence ends
I have it working when setting the sentence as a varible and reading it. Not sure how to take this next step.
1) Seperate each word so that it runs through the swtich to perform a count
2) Loop back to get each subsequent word until the sentence ends
I have it working when setting the sentence as a varible and reading it. Not sure how to take this next step.
Comment