Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to remove last comma from string in jsp?

843838Apr 13 2007 — edited Apr 13 2007
I have a string as

district = "11,12,13,14,15,16,17,"

In this string, i need to omit the last comma to save in database and my string should show in the following format

district = "11,12,13,14,15,16,17"

I am not sure, how to do that. I hope u understood the problem.
Can anyone help me out?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2007
Added on Apr 13 2007
2 comments
824 views