![]() Y is not considered a vowel in this case.įor this case, I've put all methods in the same class - in reality, I might split these methods out into different classes.Įdit: I forgot to throw an exception in generateRandomString when the isValidCharacter method is called and returns false. The task is to take an input of C / cs and V / vs and to replace Cs with random consonants and Vs with random vowels (English alphabet) while keeping the case the same.
0 Comments
Leave a Reply. |