:cry: ..i hav 2 hand over my java project soon..but i cannot figure out how 2 count da vowels in text i type inside ma textfield...i need a simple method because i just started java..i will be pleased if some one can send me commands for counting vowels in a text..
thank you
dammika 0 Newbie Poster
Recommended Answers
Jump to PostFirst, you need to clean up your own english(the abbreviations ) so we can understand you. Then you need to show us what you've already done, and specifically what you're having trouble with.
In the meantime, remember Java has a String class with many methods such as indexOf() and …
Jump to Postnext time, use the CODE tags please.
I don't see anything where you tried to solve this yet. But anyway, what you could is store the 5 vowels into an ArrayList. Then loop through each Character in your string and see if it's contained within the array. If it …
Jump to Postno, I'm not going to help you asap. I MIGHT help you if you ask nicely in a year or so.
All 9 Replies
server_crash 64 Postaholic
dammika 0 Newbie Poster
Phaelax 52 Practically a Posting Shark
dammika 0 Newbie Poster

iamthwee
dammika 0 Newbie Poster
dammika 0 Newbie Poster
jwenting 1,905 duckman Team Colleague

iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.