-
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
Simplify Managing MuleSoft Properties by Deploying with FlexDeploy | Salesforce
FlexDeploy has a Mule Plugin that simplifies the build and deploys process. Rama wrote a great blog overviewing all the capabilities FlexDeploy and the Mule…
Unboxing Salesforce Spring '18 New Lightning Features
Salesforce has released a new feature in spring-18 by which You can Personalize an app’s navigation bar to suit the unique way You work. You can…
Popular Salesforce Videos
Salesforce Video Wall
Salesforce approached Obscura with the opportunity to create imaginative media for the 107’ long LED video wall in the lobby of their flagship San Francisco…
What is the Future of Salesforce Developer?
Salesforce Developer jobs are on the rise. A lot of MNC companies like TCS, Infosys, Cognizant, etc are hiring Salesforce developers. In this video, Musings…
Exploring Technology Choices For Salesforce Integration
Are you struggling to find the perfect technology to integrate Salesforce into your business processes? Integrating Salesforce into your business processes can offer significant advantages,…