Geeky Theory

Eliminar caracteres de una variable String en Java

¡Hey, qué tal! En este post les enseñaré un pequeño truco que aprendí por ahí. Se trata de modificar el contenido de una variable de tipo String con un sencillo método llamado substring(). La sintaxis del método es: substring(int beginIndex,int endIndex);O simplemente: substring(int beginIndex); Ahora ¡pongámoslo

Geeky Theory © 2026