Int length=words.length //returns total number of words
Check this small code below: String text='Welcome to CopyAssignment' This project is mainly for beginners but intermediate Java programmers can give it a try. The project idea is very simple, you just need to count words in the sentence/paragraph which is a very simple task as you can simply use split() method and split words with just spaces. We told you these stats to excite you to make this simple yet exciting project. Do you know how many words are there in this article? The answer is no, right? But, do you know that there are many tools available online just for word counting? The reason is very simple, more than 50% of bloggers use word count tools every day and there are nearly 600 million blogs worldwide.