Program Java untuk mencetak vokal dalam string
System.out.print("Vowels in the given String are:");
for (int i = 0; i < str.length(); i++) {
if (str.charAt(i) == 'a' || str.charAt(i) == 'e' || str.charAt(i) == 'i' || str.charAt(i) == 'o'
|| str.charAt(i) == 'u') {
System.out.print(" " + str.charAt(i));
}
}
Uptight Unicorn