Question: Write a program in Java to find out the second smallest digit of a given number without using arrays. Welcome to Programming Questions !!!. In this post, I will share the code to find out the second smallest digit of a given number without using the array. This question is frequently asked in google question hub, so in this post, you will get its solution. Sample Input 1: Enter Number Here --> 5281036974 Sample Output 1: The Second Smallest number is 1 Sample Input 2: Enter Number Here --> 333 Sample Output 2: All digits of the given number are same, hence there is no second smallest number Solution code: import java.util . Scanner ; public class secondSmallest { public static void main ( String [] args ) { Scanner in = new Scanner ( System . in ); ...
Write a Java program to input a sentence and print those word which do not contain any vowels and also count those words
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 code to input a sentence and print those word which does not contain any vowels and also count those words . This question is recently asked in google question hub, so in this post, you will get its solution. Sample Input 1: Enter Sentence: I am seeing a post from the Programming Questions 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 Solution code: import java.util . Scanner ; public class consonantWords { public static ...