How to access, modify and append the final element in Multi<String>? #1098
Unanswered
Aravinda93
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Within my application I am dynamically creating and returning the customers in JSON format. I would like to differentiate each customer so I am adding a comma after the creation of each customer but I do not wish to add the comma separation to last element so I would like to remove it.
Hence, I need to access last element and make the modification but I am running into some problem when doing the same. I tried to do this but unable to concatenate the same. I am unable to get the last customer without comma. Following is the code I have:
How to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions