Java How to remove last character from string

preview_player
Показать описание
How to remove the last character from a string?
This video explains how to do that in Java, WE using the substring() method to achieve that

Below is the program
public class StringTutorial {
public static void main(String args[]){
String name="Spring,";

}
}
Рекомендации по теме
Комментарии
Автор

I was working on a code for HOURS because I couldn’t figure this out, thank you! <3

fridamoreno