id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

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)

public String capVowels(String orig) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 300

Copyright Nick Parlante 2017 - privacy