-
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 Import Your Salesforce Metadata into AbstraLinx in 2024?
In the dynamic landscape of data management, the need for efficient and user-friendly tools has never been more critical. This article unveils AbstraLinx, a specialized…
Learn About Permission Sets in Salesforce | Salesforce Security Guide
Permissions set and Profiles in Salesforce to limit what people may access, view, and do in their Salesforce org. The permission set resembles that of…
Fetching and Displaying Data in Salesforce Lightning Web Components: A Step-by-Step Guide Salesforce
Salesforce Lightning Web Components (LWC) is a framework provided by Salesforce to develop web applications easily. You know how to build cool things with building…
Popular Salesforce Videos
Prepare for TrailheaDX: Everything Salesforce Admins Need to Know
TrailheaDX is a one-of-a-kind virtual experience that connects makers, builders, doers, and dreamers looking to improve their Salesforce skillset. This year’s event includes exciting new…
What is Validation Rule in Salesforce?
Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A…
Simple Salesforce to Salesforce Data Migration Step by Step | 100% Salesforce Native App
How to Migrate Salesforce Data? Create Template: As the name suggests, this is just like a sandbox template; these templates store template lines & various…