Just a few quick questions.
1) How would I count the length of words in 5 certain strings.
SomeString.s1, SomeString.s2, etc..
2) How to compute the average word length?
3) How to compute the standard deviation (without duplicating code)
4) How to do all of this without duplicating the code for each String.
If anyone knows the answer to any of these questions, please reply with a solution; code or not.
PS - Arrays, and String.split, String.trim, or String tokenizers cannot be implemented.
Thanks a lot.
1) How would I count the length of words in 5 certain strings.
SomeString.s1, SomeString.s2, etc..
2) How to compute the average word length?
3) How to compute the standard deviation (without duplicating code)
4) How to do all of this without duplicating the code for each String.
If anyone knows the answer to any of these questions, please reply with a solution; code or not.
PS - Arrays, and String.split, String.trim, or String tokenizers cannot be implemented.
Thanks a lot.
Comment