You need to sign in to do that
Don't have an account?
shravan
How to check the unbreakable word in apex
Hi,
how to check unbrekable word in apex:
Ex: String name1 = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; // unbrekable word
Don't check if name1 like ' ' (space).
Please Reply ASAP
Regards,
Shravan
unbreakable word in the sense??
If you mean how to check the space in between, use contains method. Ie. name1.contains(' ')
boolean flag = name.contains(' ');
like this to check the spaces