Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Core Java Tutorial - Word Counter

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,802
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 7, 2010

I am going to show two different approaches to count the number of words in a String.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • @MG2468mg eclipse i believe

  • What Java software are you running?

  • Het thanks, but i have a question. If i have for example String str = "my name is 34vincent"; and i want to count how many words in there, i get 4, but i want to ignore the nonword one that starts with the number,,what must i do? I really need this one,,i wanna ignore words that contain numbers within, or that start with numbers,,,

  • hey man, i really cant do it :( i tried but its like i dont know how to do it

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more