1String string = "Hello World";
2
3//Remove first character
4string.substring(1); //ello World
5
6//Remove last character
7string.substring(0, string.length()-1); //Hello Worl
8
9//Remove first and last character
10string.substring(1, string.length()-1); //ello Worl