-
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
Your Salesforce Developer Is Not an AppExchange Developer, and the Gap Costs About Six Weeks
Everyone who has ever cooked a great dinner party has, at some point, been told they should open a restaurant. It is a compliment, and…
Popular Salesforce Videos
Salesforce Flow to Create Feedback form on Case | How to use Slider, Radio button on Screen Flow
Use Case: In this video, we are creating a screen flow to get feedback from the users when the case is closed. Learnings: 1. How…
How Much Time to Give to Salesforce Preparation?
Wondering how much time to give for Salesforce preparation? Watch this video it explains distinctly how much time you need to learn. If you have…
In App Guidance | Salesforce Tutotial
In this video, we take a look at one of the new features from the Salesforce Summer '19 release - In-App Guidance. We explain what…