0

I hava word count program in java

Some one line how many times paint word

17th Feb 2022, 5:50 AM
Bala Krish
2 ответов
+ 1
If you'd like to count the words I recomented to use the split method on string like this: String words = "hello world"; int count = words.split(" ").length; The split return an array which contains the word, and you need to call the length, which is return the array's length, which is the words count
17th Feb 2022, 6:07 AM
Domonkos Gyömörey
Domonkos Gyömörey - avatar
0
Hi, so you have a word counter program.... And what is the problem? and show me your code, if it is neccesary
17th Feb 2022, 5:58 AM
Domonkos Gyömörey
Domonkos Gyömörey - avatar