-
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 Incident Management Solution In Service Cloud: Quick Guide
From system outages and data breaches to product malfunctions, the way organizations respond can make all the difference in maintaining customer trust, ensuring operational continuity,…

How to Generate More Qualified Leads with Salesforce CRM in 2023?
Why do you need to acquire leads? With a large number of leads (potential buyers), the business will be able to survive because these people…

Top 10 Salesforce Apps that Your Company Needs
Enterprise mobile apps are gaining ground as more and more Salesforce teams are taking advantage of the cloud-based services in the enterprise space. This saves…
Popular Salesforce Videos
How to Create an Object in Salesforce Lightning Experience?
Salesforce has always emphasized on declarative development since the beginning. The motto is that enterprise software should be easy to use for customers. With “clicks…
Using Lambdas to Overcome Salesforce Governor Limits
Salesforce is a great CRM product, but it has some limitations that can prove troublesome depending on the situation. Since each org has to share…
4 Benefits Of Customized Salesforce Services
Salesforce is a fantastic CRM, but the truth is that the off-the-shelf version is nothing compared to the power of Salesforce once you customize it.…