My array contains 3 elements which describe 3 different 'singers', every singer has an abstract String method which returns 'lyrics'. Lyrics contain lower and uppercase letters, the singer who has the largest number of uppercase letters is the one who sings the loudest. The method below has to compare these three singers and their lyrics, the one who sings the loudest (has the largest number of uppercase letters) needs to be returned, if anyone knows how to solve this problem, please, help me. Thanks!
public static String najglosniej(Spiewak[] sp) {
return " ";
}
Aucun commentaire:
Enregistrer un commentaire