-
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
Why Insurance Agency Should Use Salesforce Partner Portal
Today, customers seek convenience in accessing information and services online. Especially for an insurance broker, adaptation to digital transformation has become the most prominent thing.…
Salesforce Product : Marketing Cloud
Salesforce Product : Marketing Cloud A platform with seven primary products that helps to reach out your customers at the right time, with the right…
The New Marketing Cloud Growth Edition: All You Need to Know
The Marketing Hustle for Small Businesses Running a small business is an exciting journey, but keeping up with marketing demands can feel overwhelming. Limited resources…
Popular Salesforce Videos
Salesforce Marketing Cloud Connect Complete Setup in Lightning
Cameron Robert demonstrates a complete end-to-end setup of Marketing Cloud Connect in Lightning view. Marketing Cloud Connect creates an integration between Salesforce CRM and Salesforce…
What is Salesforce? What Does it Do?
Business is rapidly changing. In this digital age, everything and everyone is connected, which is changing the way we communicate with our consumers. Businesses nowadays…
Custom Button URL Hacking in Salesforce Lightning Experience vs Salesforce Classic
Custom Button URL Hacking in Salesforce Lightning Experience vs Salesforce Classic Custom button URL Hacking approach in Salesforce Classic Custom button URL Hacking approach in…