Skip to Main Content

New to Java

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 the last character from string?

807599Apr 29 2007 — edited Apr 29 2007
For example:

String apple = "hello world";

how do I remove the last character "d" from String apple without reassigning a new string to apple?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2007
Added on Apr 29 2007
4 comments
1,035 views