What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-14 20:11:16
Count number of words in a String
public static void main (String[] args) { System.out.println("Simple Java Word Count Program"); String str1 = "Today is Holdiay Day"; String[] wordArray = str1.trim().split("\\s+"); int wordCount = word... Add solution