It's not a secret anymore!
The moose likes Beginning Java and the fly likes counting letters in a substring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "counting letters in a substring" Watch "counting letters in a substring" New topic

counting letters in a substring

GitaLakshmi Mandal

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:
subject: counting letters in a substring
It's not a secret anymore!