Activity › Forums › Salesforce® Discussions › What is the use of swapCase() method of String Class in Apex ? Salesforce® Discussions What is the use of swapCase() method of String Class in Apex ? Posted by Kirandeep on August 28, 2020 at 2:30 PM What is the use of swapCase() method of String Class in Apex ? Sumit kumar replied 5 years, 9 months ago 3 Members · 2 Replies 2 Replies Anuj Member August 28, 2020 at 3:10 PM The Swapcase function is used to convert every single characters of string from lower case to upper case and from upper case to lower case. [adinserter block='9'] Sumit kumar Member August 30, 2020 at 4:06 PM The Swapcase function is used to convert every single characters of string from lower case to upper case and from upper case to lower case. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me