The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Count words

Posted by adam on November 12, 2001 at 4:15 PM

I need to write a program which reads a line of text from the keyboard, terminated by a carriage return , into a suitable storage data type. The program should now print out the number of complete words in the line of text.
Now I need to modify the above program so that it also prints out the number of occurrences of each vowel (a,e,i,o,u) in the line of text.
Please help



Replies:
  • aeiou Chin Loong November 12, 2001 at 9:06 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us