-
Accidently splitting an empty string on some specific character returns a list of size One
Why splitting of empty string on some specific character returns a list of size One? What does this list contain if it has size One?
Sample code:`string s='';
list<string> str = s.split(',');
if(str.isEmpty()){
system.debug('Hello i am empty');
}
else{
system.debug('oops');
}
Log In to reply.
Popular Salesforce Blogs
How to Upload and Show Images in Lightning Aura Component | Salesforce Developer Guide
In order to upload an image, you have two ways either use a standard file:upload or create a custom image file upload. Using the standard…
Welkin's Customizable Path Brings your Salesforce Sales Path to a Completely New Level
We're extremely glad to introduce to you our new AppExchange product - Welkin's Customizable Path. Would you like to give your users better visibility of…
Salesforce Experience Cloud: A Comprehensive Guide
In order to maintain a competitive advantage, businesses must continually adapt to the ever-changing needs of their customers. To meet these customer demands and stay…
Popular Salesforce Videos
Salesforce Development and Career Opportunities
Salesforce is the world’s #1 customer relationship management (CRM) platform. Salesforce allows sales reps to see everything about a customer in one place and provide…
How to Become a Salesforce Developer? No Programming Experience Needed
Salesforce Developer has once again been named one of the world's best jobs. In a list of 25 job roles, Salesforce was the only company…
Salesforce Interview | Marketing Cloud Success
What's it like to learn Marketing Cloud from scratch? Akasia Perran has the answers and in this video, I ask her about her experience starting…