How to remove the first character of a string in Java?

To remove the first character of a string in Java, call substring(1).

Calling String.substring(1) means you want the string to return a substring that starts from index 1 (second character) and ends at the end of the string:

"some string".substring(1); // ome string

String anotherString = "another string";
anotherString.substring(1); // nother string