×

smashplus's video: Java How to remove last character from string

@Java How to remove last character from string
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,"; System.out.println("before:"+name); String newname=name.substring(0,name.length()-1); System.out.println("after:"+newname); String newname2=name.substring(name.length()-1); System.out.println("after2:"+newname2); } }

34

4
smashplus
Subscribers
1.3K
Total Post
64
Total Views
143.7K
Avg. Views
2.2K
View Profile
This video was published on 2019-01-24 22:49:37 GMT by @smashplus on Youtube. smashplus has total 1.3K subscribers on Youtube and has a total of 64 video.This video has received 34 Likes which are higher than the average likes that smashplus gets . @smashplus receives an average views of 2.2K per video on Youtube.This video has received 4 comments which are higher than the average comments that smashplus gets . Overall the views for this video was lower than the average for the profile.

Other post by @smashplus