switch an English alphabet list that starts with lowercase first to a string that starts with uppercase first: : swapcase « String « Ruby






switch an English alphabet list that starts with lowercase first to a string that starts with uppercase first:


puts "aAbBcCdDeEfFgGhHiI".swapcase

 

Related examples in the same category

1.Call swapcase function from string class