Simplifying Java Software Development: How to Count the Number of Words in a String using Java (one-liner)

Simplifying Java Software Development: How to Count the Number of Words in a String using Java (one-liner)

Note: This article will be emailed to your friend.

Java is a language of choice for millions of developers worldwide. In a series of articles I will show simple tips and techniques which make Java extremely powerful and yet simple to use. Today’s article is about using regex, a pattern matcher incorporated in Java (from 1.4 I believe).

Here is a sample code (line in [...]

Read the rest of this article (166 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro