Answers for "remove frist few character from string java"

4

remove first character from string

String str = "Hello World";
String str2 = str.substring(1,str.length());
Posted by: Guest on May-05-2020
0

remove part of string java

// Works only if you have a certain character at which you want to cut
String text = "Image.png";

String[] cutText = text.split("\\.");

// cutText[0] has value "Image"
// cutText[1] has value "png"
Posted by: Guest on March-11-2020

Code answers related to "remove frist few character from string java"

Code answers related to "Javascript"

Browse Popular Code Answers by Language