import [Link].
Scanner;
public class Game {
public static void main(String[] args) {
Scanner scanner = new Scanner([Link]);
[Link]("pot: ");
String word = [Link]().toLowerCase();
int vowels = 0;
int consonants = 0;
for (int i = 0; i < [Link](); i++) {
char ch = [Link](i);
if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch ==
'u') {
vowels++;
} else if ([Link](ch)) {
consonants++;
}
}
[Link]("Number of vowels: " + vowels);
[Link]("Number of consonants: " + consonants);
String[] song Titles = {
"Bohemian Rhapsody",
"Imagine",
"today",
"just like magic",
/*[Link]("pop music"); {*/
}
String pop = [Link]().toLowerCase();
{
[Link]("Imagine:");
[Link]("Bohemian Rhapsody:") ;
[Link] ("today:") ;
[Link] ( "just like magic:");
[Link] ("pop music:");
}
boolean found = false;
for (String title : songTitles) {
if ([Link]().contains('pop music;')) {
[Link](title);
found = true;
}
}
if(!found){
[Link]("No song titles matching your search query
found.");
}
scanner. Close();
}
}