deleteWhitespace()
is used to remove spaces from a string in Salesforce.
For Example:
String str = 'Hello World'; system.debug(str.deleteWhitespace()); //HelloWorld
deleteWhitespace()
is used to remove spaces from a string in Salesforce.
For Example:
String str = 'Hello World'; system.debug(str.deleteWhitespace()); //HelloWorld