java remove first char from string code example
Example 1: java remove first character from string
String string = "Hello World";
string.substring(1);
string.substring(0, string.length()-1);
string.substring(1, string.length()-1);
Example 2: remove first character from string
String str = "Hello World";
String str2 = str.substring(1,str.length());
Example 3: how to delete character in string java
# subString(int start, int end);
String a = "Hello!";
b = a.subString(0,a.length()-1) #Remove the last String
# b should be "Hello" then
Example 4: java remove first character
"Hello World".substring(1)
Example 5: how to remove first letter of a string
s = "hello"
print s[1:]
Example 6: remove part of string java
String text = "Image.png";
String[] cutText = text.split("\\.");