-
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 Choose the Perfect Salesforce Consulting Partner?
Introduction Choosing the right Salesforce consulting partner is a critical decision that can significantly impact the success of your Salesforce implementation. A reliable and experienced…
Learn Salesforce Einstein – Chapter 4 (How to check API Usage)
How to check API Usage You can see this page if you have uploaded the key using these steps. You see below sections here: 1. API…
Salesforce Data Integrity & How to Maintain it?
This blog on Salesforce data integrity features a brief intro to the contacts and accounts information inside the Salesforce and how do you establish a…
Popular Salesforce Videos
How to Create Seamless Buying Experiences | Salesforce CPQ & B2B Commerce
B2B buying is evolving as buyers want a better, more personalized experience when shopping for their businesses. But Salesforce has that covered. Here are 4…
Can I Get a Job by Just Learning Salesforce Admin?
In this Video Shrey covered the following questions: 1. Can I get a job by just learning Salesforce Admin? 2. Can you start a career…
Flow to Redirect User to Newly Created Record - Salesforce Flow
Scenario: Shubham is looking for functionality in Salesforce Flow Where after creating a record it redirects to that particular record detail page. Solution A: Create…