Re: Open a file and count vowels
- From: Christopher Benson-Manica <ataru@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 22:32:28 +0000 (UTC)
Matt <mattaseymour@xxxxxxxxx> wrote:
I am trying to create a program which will allow the user to open there
desired text file and count the number of Vowels, and lines in the
text. As of yet i cant find or dont know how to produce this program. I
need to use Java was wondering if anyone has any ideas.
Use the classes and methods in the java.io package to open the file.
Your friendly Java reference can tell you more. Read each line. Keep
count. Look at each character and see if it's a vowel. Keep count.
It should be beyond trivial for you to demonstrate 0.00001% effort and
1) use Google as a source of information, 2) read your friendly
textbook, and 3) try it yourself.
--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
.
- Follow-Ups:
- Re: Open a file and count vowels
- From: Daniel Pitts
- Re: Open a file and count vowels
- References:
- Open a file and count vowels
- From: Matt
- Open a file and count vowels
- Prev by Date: Re: How to check variables for uniqueness ?
- Next by Date: Re: Need a new access modifier?
- Previous by thread: Open a file and count vowels
- Next by thread: Re: Open a file and count vowels
- Index(es):
Relevant Pages
|