📅  最后修改于: 2022-03-11 14:52:22.990000             🧑  作者: Mango
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);
}
}