-
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
Apex Trigger In Salesforce - Get Started
The trigger is an apex code that executes before and after the DML operations. Following are the DML operations:- Insert Update Delete Upsert Merge Undelete…
Salesforce Consulting Services: The Missing Piece in Puzzle for Users and Partners?
With the ever-increasing technology product portfolios and M&As of Salesforce, it can be challenging for most of the Salesforce partners to keep up with the…
Salesforce Security Mastery: Object, Permission Sets, Field, and Record-Level Strategies with OWD
What You’ll Learn: How to protect an Object in Salesforce Security? What is Profile Level Security? What is Permission Set in Salesforce? Difference between Profile…
Popular Salesforce Videos
Salesforce Apex Tutorial for beginners | Apex Salesforce Tutorial
Apex is a proprietary language developed by Salesforce.com. It is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the…
Salesforce Introduced Next Generation Of Tableau Cloud
Salesforce added a new member to its fleet of the cloud for customers: Salesforce Tableau Cloud. The Tableau Cloud developed will empower the customers to…
All About Salesforce Web Chat
Salesforce webchat help customer interacts with the support team. It also improves the support experience for customers. It is very easy to set up the…