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

 

jebbert@volusia.k12.fl.us > test2023_10_05_SLHL_changeVowels
prev  |  next  |  chance

Write a method that returns string 'str' but with all the capitalization of the vowels switched. Capital vowels become lowercase vowels and lowercase vowels become capital vowels. For this method, only a, e, i, o, and u are considered vowels. Look at the test data for examples.


test2023_10_05_SLHL_changeVowels("aeiou") → "AEIOU"
test2023_10_05_SLHL_changeVowels("AEIOU") → "aeiou"
test2023_10_05_SLHL_changeVowels("aEioU") → "AeIOu"

...Save, Compile, Run (ctrl-enter)

public String test2023_10_05_SLHL_changeVowels(String str) { }

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: 240

Copyright Nick Parlante 2017 - privacy