function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
termfrequencytermfrequency 

String Processing

Is there a better way to concatinate strings in apex other than using + operator?

 

Is there any classes similar to Java's StringBuilder/StringBuffer in apex?

 

 

Thanks

Ram

Ispita_NavatarIspita_Navatar

Apex has String methods which are all called by and operate on a particular instance of a String.

The list of available String methods is given below:-

1.  Contains

2.  CompareTo

3.  EndsWith

4.  equals

5.  equalsIgnoreCase

6.  indexOf

7.  length

8.  split

9.  startsWith

10.substring

11.toLowerCase

12.toUpperCase

 

I didn't find a Join() function, probably you can make a post on the ideas.

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.