Write a Java program to check if a vowel is present in a string WITHOUT using any function.

Published: 07 August 2023
on channel: The Disciplined learner
520
18

Top 50 Java Programming Interview Questions
public static void main(String[] args) {
// TODO Auto-generated method stub
String ChkVowel;
System.out.println("Enter your word to check Vowel");
Scanner in=new Scanner(System.in);
ChkVowel=in.next();
if(ChkVowel.toLowerCase().matches(".*[aeiou].*"))
{
System.out.println("Vowel is Present");
}
else {
System.out.println("Vowel is NOT Present");
}
}


On this page of the site you can watch the video online Write a Java program to check if a vowel is present in a string WITHOUT using any function. with a duration of hours minute second in good quality, which was uploaded by the user The Disciplined learner 07 August 2023, share the link with friends and acquaintances, this video has already been watched 520 times on youtube and it was liked by 18 viewers. Enjoy your viewing!