function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
.12.12 

How to remove array string from particular values

Best Answer chosen by .12
Malika Pathak 9Malika Pathak 9
Hi Saiteja,
    
Greetings!
 
Integer index = arrayString.indexOf(removeValue);
if(index != -1) {
    arrayString.remove(index);
}
System.debug(arrayString);

Please mark it as the best answer if it helps you to fix the issue.

Thank you!

Regards,
Malika Pathak

All Answers

SwethaSwetha (Salesforce Developers) 
HI Sai teja,
What are you trying to achieve and where are you stuck? Can you elaborate more on your ask so I can suggest better?Thanks
Malika Pathak 9Malika Pathak 9
Hi Saiteja,
    
Greetings!
 
Integer index = arrayString.indexOf(removeValue);
if(index != -1) {
    arrayString.remove(index);
}
System.debug(arrayString);

Please mark it as the best answer if it helps you to fix the issue.

Thank you!

Regards,
Malika Pathak
This was selected as the best answer
Lalit HembramLalit Hembram
Hello, Malika Pathak, I can't understand please tell me in details 
हिंदी में ब्लू पिक्चर (https://bit.ly/3dFDM2a)