about | help | code help+videos | done | prefs |
capVowels
Write a method that accepts a String input parameter and returns the string will all the consonents in lower-case and all the vowels in upper-case. The string is otherwise unchanged. For this method, assume that "y" is always a consonent. capVowels("This is a test!") → "thIs Is A tEst!" capVowels("Walla walla Washington") → "wAllA wAllA wAshIngtOn" capVowels("aeiou and sometimes y") → "AEIOU And sOmEtImEs y" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 300
Copyright Nick Parlante 2017 - privacy