-
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
![Use Cases of JavaScript in Salesforce - Change Table Row Colours on the basis of criteria](https://images.forcetalks.com/wp-content/uploads/2018/02/25082736/Use-Cases-of-JavaScript-in-Salesforce-Change-Table-Row-Colours-on-the-basis-of-criteria.png)
Use Cases of JavaScript in Salesforce: Change Table Row Colours on the basis of criteria
In the ever-changing technological era, we often come across a new programming language that is being introduced to match the requirements of current problems and…
![](https://images.forcetalks.com/wp-content/uploads/2023/08/08062025/Grey-Minimalist-Tips-Blog-Banner-36-1024x576-1.jpg)
Salesforce Licenses Types
Salesforce offers various types of licenses to cater to the diverse needs of different users and organizations. Here are some common types of Salesforce licenses:…
Popular Salesforce Videos
Use Salesforce Notification Builder to Get Notifications to the Right Users in the Right Apps
Did you know you can use Notification Builder to create custom notifications for teams, task queues, and public groups? You can also replace standard notifications…
Journey To A Salesforce Solution Architect
A Salesforce Solution Architect must master a number of skills to be able to solve complex business requirements. In this session, we will cover 10…
Crash Course on Apex Triggers Salesforce | Complete Guide with Real Time Scenarios
Complete guide on Apex Triggers Salesforce 0:00 Intro 0:33 Is Triggers difficult to Learn 0:50 What is Trigger? 3:03 What are Trigger events? 11:55 How…