Check out example codes for "eliminar el primer caracter de un string java". It will help you in understanding the concepts better.

Code Example 1

public class pruebaSubstring{
    public static void main(String[] args) {
        String cadena_a,cadena_b,cadena_c="GeekyTheory";
      	//substring(beginIndex,endIndex)
        cadena_a = cadena_c.substring(0,5);
      	//subtring(beginIndex)
        cadena_b = cadena_c.substring(5);
    }
}

Learn ReactJs, React Native from akashmittal.com