-
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
Salesforce Financial Services Cloud Implementation Guide
You’ve decided to use Salesforce Financial Services Cloud, but you may not know where to begin. How can you utilize Salesforce to track all your…
Automation in the Insurance Industry: Benefits and Salesforce Use Cases
Unstructured data is the key pain point that drives companies from various industries towards automation, and insurance is no exception. With automation, you'll be able…
The IT Leader's Guide to a Better Salesforce: An Introduction
Salesforce is fantastic. Sure, it has quirks. Yes, some people complain about it…but when you consider its power…an out of the box fully functioning CRM…
Popular Salesforce Videos
Salesforce Tutorial - Data Loader Installation On Windows - with Zulu Open JDK
Data Loader is utility to perform bulk database operation. Recently Salesforce has changed the way data loader need to be install. I explain end to…
Apex Classes and Apex Triggers in Salesforce
In this video, Salesforce developer Artem will demonstrate real-world applications of both Apex classes and triggers with practical business scenarios. Apex classes and Apex triggers…
Demystifying OAuth and Connected Apps
Often times, the first thing an application needs to do is authenticate its users. Developers building integrations with Salesforce need a simple and secure way…