filmov
tv
Java - count vowels in a String

Показать описание
Java program to count the number of vowels in a String.
Multiple methods to check if a single character is a vowel or not
- using if statement
- using indexOf() method of String class
- using switch-case method
0:26 Problem introduction
1:06 Solution explanation
2:45 Java code
5:43 Alternate method 1 - check if char is vowel using indexOf()
7:44 Alternate method 1 - check if char is vowel using switch-case
9:55 Optimisations
11:25 Running the code
#javaprogramming #javatutorial #javaforbeginners
Multiple methods to check if a single character is a vowel or not
- using if statement
- using indexOf() method of String class
- using switch-case method
0:26 Problem introduction
1:06 Solution explanation
2:45 Java code
5:43 Alternate method 1 - check if char is vowel using indexOf()
7:44 Alternate method 1 - check if char is vowel using switch-case
9:55 Optimisations
11:25 Running the code
#javaprogramming #javatutorial #javaforbeginners