Strings in
Java are immutable - they cannot be changed.
Having said that, what you CAN do is get a substring of a given string, and assign it to a (possibly new) variable...
so something like
String fullString = "remove last lettera"
String truncatedString = ???// get the substring of the above...
you can look at the java api and the String class for something that might help. if you knew the full length of the string, you'd just take the substring from the beginning to the last-but-one position...
API is here...
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors