wordSort.sort!
=begin
Conditional is performed on the array: if array index is equal to zero or has
a remainder of zero after being divided by 2 then call upcase method on element.
Else call lowe
我已經編寫了代碼來接收一個字符串並返回相同的字符串,並將所有字母更改爲下一個和元音大寫。但是,當我嘗試運行它時,元音似乎並不像我所期望的那樣大寫。 這是我的代碼: def LetterChanges(str)
str = str.downcase.split (" ")
str.each do |word|
i = 0
while i < word