I am suppose to use methods in order to count number of words in the a sentence. I wrote this code and I am not quite sure why it doesn\'t work. No matter what I write, I on
Should you not have int count = 0; instead of int count = 1;, in case of blank sentences. If you're getting Java errors please could you add them to your question.