-
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
What are Apex Basics? A Guide in 2023
The primary languages required to know in salesforce are: - Apex – It is used to write the business logic or we can say it…
Mobile App for Salesforce - Learn All About it Here
The Salesforce mobile app makes all essential information available at the touch of a button, including dashboards and reports, leads and opportunities notifications, and tasks.…
Pardot vs Marketing Cloud: Which Tool Is The Ultimate Game Changer?
Here’s a question: Which Salesforce marketing automation tool is the right choice for your business? Is it that easy to answer? We bet you, it…
Popular Salesforce Videos
Salesforce Lightning Tutorial | Salesforce Developer Training for Beginners
This salesforce developer training for beginners video is a salesforce lightning tutorial where you will learn introduction to salesforce, salesforce components, salesforce lightning, lightning vs…
Salesforce Integration Tutorial | Integrate Salesforce with Apps
This "?????????? ??????????? ????????" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…
360 SMS App Demo
360 SMS App is considered to be the most reliable Salesforce SMS App. This App is listed on the AppExchange from the name "360 SMS…