Java,logic for counting the number of odd-lettered words in a string!?

Aditi

New member
I want to count the total number of odd lettered words in a string
Input- welcome to the new world
Output- number of odd-lettered words is 4
(namely-welcome,the,new,world)
 
Back
Top