How to remove first character from a string in Java
To remove the first character from a string we need to use the
substring() method by passing
1 as an argument in Java.
Here is an example, which removes the first character
h from a string.
String str = "hello"; System.out.println(str.substring(1));