-
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
Permission Sets in Salesforce - Learn About Its Different Types
A permission set is a collection of settings and permissions that give users access to various tools and features. Permission sets extend users' functional access…
Fastest "For Loop" in Salesforce
Loops play a very important part in our Lives. Whenever we need to play over large sets of Data, we usually use For Loops. But…
Popular Salesforce Videos
Attribute Setup for Skill based Routing in Salesforce
This video is 3rd Part of the Omnichannel Series. Implementation of Attribute set up skill-based routing with the demo. Do let us know in the…
Wow Your Customers with Salesforce Customer 360 Salesforce
Wow Your Customers with Salesforce Customer 360 Salesforce. Watch this video to learn all about it. Do let us know in the comments if you…
Salesforce Billing - Digital Wallets and Alternative Payment Methods
THE GOAL: In this video, you will learn how to use Alternative Payment Methods and Digital Wallets with Salesforce Billing. BEFORE YOU BEGIN, KNOW THE…