-
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
Approval Process in Salesforce - A Short Guide
Hello everyone, in this Blog we will discuss Approval Process. An Approval process in Salesforce automates how records are approved inside our org. It allows…
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…
Salesforce Lightning Web Components Open Source Version (OSS)
Introduction Lightning Web Components Open Source is an enterprise-grade UI framework built on modern web standards using which you can build apps that can run…
Popular Salesforce Videos
5 Important Topics to Crack Salesforce Platform Developer 1 Exam
In this video, Shrey gives you an important topic which gonna be really very helpful for crack the Platform Developer 1 Certification. Without mastering these…
Salesforce Admin Tutorial For Beginners
What is Salesforce Admin? Salesforce Admin is totally a Business Leader. Who should have in-depth knowledge, how the company operates. In designing all its Departments.…
Is Trailhead enough to crack Salesforce Interview?
In this video, Shrey answered one of the most asked questions related to Salesforce Interview. Let's see how beautifully Shrey answered this Question. We hope…