-
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
Salesforce Winter '22 Release Highlights
With fall now upon us, the weather is cooling, the leaves are changing, and the Salesforce Winter '22 Release is here! Chock-full of impressive new…
Salesforce Security Mastery: Object, Permission Sets, Field, and Record-Level Strategies with OWD
What You’ll Learn: How to protect an Object in Salesforce Security? What is Profile Level Security? What is Permission Set in Salesforce? Difference between Profile…
What is Batch Apex in Salesforce? | All You Need to Know
Batch Apex allows developers to process large amounts of data in a batch, without hitting governor limits, which are limits on resources like CPU time,…
Popular Salesforce Videos
Engineer More Than Software at Salesforce
Salesforce engineers are builders. Together, we’ve created a platform that helps companies around the world connect with their customers. Driven by our commitment to trust,…
Career in Salesforce in 2022
In this video, Shrey is talking about starting your career in Salesforce. Here are the different career choices you have or different profiles that are…
Salesforce Diagram | Salesforce Diagramming Framework
Diagrams help drive key project decisions, align delivery teams, and help everyone understand where you’re going and what’s been done. Consistent, easy-to-understand diagrams are a…