problem solved.
When i changed length+1 where the substring is created to just length it works. Not too sure why. If anyone could enlighten, it would be helpful
Type: Posts; User: ddonn
problem solved.
When i changed length+1 where the substring is created to just length it works. Not too sure why. If anyone could enlighten, it would be helpful
Hi guys,
I am trying to count the number of words in a sentence. My method of doing this is as follows;
1.Accept a sentence from the user using System.in
2.Scan the user input and store as a...