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

Publicado em: 07 Agosto 2023
no canal de: 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");
}
}


Nesta página do site você pode assistir ao vídeo on-line Write a Java program to check if a vowel is present in a string WITHOUT using any function. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário The Disciplined learner 07 Agosto 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 520 vezes e gostou 18 espectadores. Boa visualização!