Lesson 19 of 22 • 1 upvotes • 13:34mins
W.A.P to accept a sentence in mixed case. Find the frequency of vowels in each word and print the words along with their frequency in separate line. Sample Input: We are learning scanner class Sample Output: Word Frequency of vowles. We 1 are 2 learning 3 Scanner 2 String st=ss.nextLine(); String st2=""; for(int i=0;i<st.length();i++) { char c=st.charAt(i); if(c!=32) st2+=c; else{ int f=0; st2=st2.toUpperCase(); for(int j=0;j<st2.length();j++) { char cc=st2.charAt(j); switch(cc) { case 'A': case'E': case'I': case'O': case'U': f++; } } System.out.println(st2+" "+f);; f=0; st2=" "; }
22 lessons • 3h 44m
Zippo Number in Java (in Hindi)
6:46mins
Twist Number in Java (in Hindi)
9:03mins
Twin Prime Number in Java (in Hindi)
12:05mins
Krishnamurthy Number in Java (in Hindi)
9:49mins
Lead Number in Java (in Hindi)
9:29mins
Cyclo Number in Java (in Hindi)
9:26mins
Micro Number in Java (in Hindi)
9:00mins
Pearre Partners in Java (in Hindi)
10:49mins
Spy number in java
9:37mins
Java series (S=1!+2!+3!+4!+5!+….+n!)
11:43mins
Trunk number in Java
10:33mins
Java pattern
10:26mins
Java series 1+ 𝒙 +𝒙^𝟐/𝟐+𝒙^𝟑/𝟑+𝒙^𝟒/𝟒…………+𝒙^𝒏/𝒏
11:33mins
Java series 1,11,111,1111,11111
8:36mins
Automorphic number in Java
10:10mins
W.A.P to genrate random integer number between 1 to N
8:13mins
Pattern in Java
10:53mins
Display all the tokens of the String which begin with a capital letter and end with a small letter.
12:47mins
Find the frequency of vowels in each word and print the words along with their frequency.
13:34mins
Program to remove the repeating token in a string.
9:18mins
In a string to change 26 to 15; January to Augest; Republic to Independence.
10:49mins
#5 pattern in Java
10:03mins