Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
- /*
- * Write a program which counts number of vowels in a file. Program should take
- * file name from command line argument.
- */
- import java.io.*;
- class CountVowels
- {
- public static void main(String args[])
- {
- int i;
- int count = 0;
- try
- {
- FileReader fr = new FileReader(args[0]);
- while((i=fr.read()) != -1)
- {
- switch((char)i)
- {
- case 'A':
- case 'a':
- case 'E':
- case 'e':
- case 'I':
- case 'i':
- case 'O':
- case 'o':
- case 'U':
- case 'u':
- count++;
- break;
- }
- }
- fr.close();
- System.out.println("There are " + count + " vowels in the file.");
- }
- catch(Exception e)
- {
- System.out.println("Exception : " + e );
- }
- }
- }

geotorelxz credit card
iphonewild free iphone free
how to get rid of back acne
slaniapapslaniapapslaniapap
navegador google a??s
acceder al iphone agora
EnsuroxquonryBewjawatowlOrgag
Recommended Website: sign in
Odocoubloloaccolignita
Garcinia Cambogia Extract
q n 0 o z scrabble help
users can it right in their
totally free dating sites in
The particular Gong Xiaobin
Zheng Jie is due to silver
Scary game Scary maze game
the Scary maze game Scary
Scary maze game the Scary
Scary game maze game Scary
nike free norge nike norge
Cling to does Sa complain
nike nettbutikk nike sko nike
Post new comment