-
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
Best Practices in Testing | Salesforce Developer Guide
To be successful in the IT sector, you must be familiar with all of the finest testing procedures. It is critical to have testing best…
Why Need Salesforce Consulting Services For Your Business
Salesforce Consulting Services: Empowering Companies for Success during the Electronic Age In the present rapidly evolving enterprise landscape, harnessing the strength of technological know-how is…
Pardot VS. Marketing Cloud: Differences and FAQs [INFOGRAPHICS]
Should I choose Pardot (Marketing Cloud Account Engagement) or Salesforce Marketing Cloud to automate marketing campaigns in Salesforce? Is there any difference? Is Pardot a…
Popular Salesforce Videos
Salesforce CEO Marc Benioff on New Software to Help Businesses Reopen
Marc Benioff, founder, chairman and CEO of Salesforce, joins CNBC's Jim Cramer to discuss the company's new initiatives to help businesses reopen. Salesforce announced a…
Avoid Common Security Mistakes in Salesforce
Are you using Salesforce in the most secure way? Security is not a “set it and forget it” thing. We conduct Salesforce Security Risk Assessments…
Creation Of Validation Rules And Verifying Them In Salesforce
Learn how to create and verify validation rules in Salesforce. This video will cover the following points - 1. Introduction Get a brief introduction about…