¿Qué hace el siguiente código en Java?
public class Ejemplo {
public static void main(String[] args) {
String texto = "Hola mundo";
String subtexto = texto.substring(2, 6);
System.out.println(subtexto);
}
}
¿Qué hace el siguiente código en Java?
public class Ejemplo {
public static void main(String[] args) {
String texto = "Hola mundo";
String subtexto = texto.substring(2, 6);
System.out.println(subtexto);
}
}