Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Programming - countVowels() method

Write a method which has one parameter, a string, and it returns the int number of vowels (a e i o u) in the string.

Tutorial Details:

Details
Vowels. It should regard a, e, i, o, and u as the vowels.
Case. It should handle both upper and lower case vowels.
No I/O. As usual, this method should do no I/O.
Method header. The method should be defined using this header.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/strings/q-pr-string-using-loops/q-pr-countvowels-method.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Programming - countVowels() method

View Tutorial:
Programming - countVowels() method

Related Tutorials:

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.