Question: Write a Java program to input a sentence and print those word which does not contain any vowels and also count those words.
Welcome to Programming Chaska !!!. In this post, I will share the solution to the above-mentioned question. This question is recently asked in the google question hub, so let's see its solution.
Sample Input 1:
Enter Sentence: I am seeing a post from the Programming Chaska blog.
Sample Output 1:
All the words in the above sentence contain vowels
Number of words which does not contain any vowel = 0
Sample Input 2:
Enter Sentence: The rhythm and flow of this song are quite decent.
Sample Output 2:
rhythm
Number of words which does not contain any vowel = 1
0 Comments