Link to home
Start Free TrialLog in
Avatar of gazdzid
gazdzidFlag for United States of America

asked on

Java Code - Appostrophe (most likely spelled wrong)


In the code found below, Can someon tell me what the apostrophe is used for? What is its purpose?

resp = resp + "<BusinessName id='"+BusinessId+"'>"+BusinessName+"</BusinessName>";
ASKER CERTIFIED SOLUTION
Avatar of kadaba
kadaba
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sathish David  Kumar N
eg:
think  initialzly resp=5


now as ur give
ur going to assign new value to resp !!

resp + "<BusinessName id='"+BusinessId+"'>"+BusinessName+"</BusinessName>";
 
+  for concatenate the strings ..

<BusinessName>  tag ur  using !!
</BusinessName> close the tag !!

property is id

u want to assign string value to id ..

so ' " +BusinessId+" '  

Avatar of gazdzid

ASKER

I would like to review before assigning points. sorry for the delay
Avatar of gazdzid

ASKER

I agree with moderator.