Mechendo com String

Vê o setCharAt() e length.

Depois é só trocar o char na posição length - 1. :slight_smile: