Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes counting letters in a substring Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "counting letters in a substring" Watch "counting letters in a substring" New topic
Author

counting letters in a substring

GitaLakshmi Mandal
Greenhorn

Joined: Mar 27, 2003
Posts: 2
I am trying to count letters in a word for example "how do you do". I want to count how many three letters word. How can I do that using stringtokenizer. Someone could help me!
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi GitaLakshmi,
Welcome to JavaRanch. Maybe something like this:

Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: counting letters in a substring
 
Similar Threads
String Compressor
string convert?
Strings
Hello! New here, question understanding some code
need help