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

Publié le: 07 août 2023
sur la chaîne: 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");
}
}


Sur cette page du site, vous pouvez voir la vidéo en ligne Write a Java program to check if a vowel is present in a string WITHOUT using any function. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur The Disciplined learner 07 août 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 520 fois et il a aimé 18 téléspectateurs. Bon visionnage!