Answers for "write a java program that is able to identify all the vowels in a user given sentence."

-1

java program to print vowels in a string

String str = "hello";
String vowels = "aeiou";

for(char c : str) if(vowels.contains(c)) System.out.println(c + "");
Posted by: Guest on April-13-2021

Code answers related to "write a java program that is able to identify all the vowels in a user given sentence."

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language