Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

eliminar el primer caracter de un string java

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);
    }
}
Source by geekytheory.com #
 
PREVIOUS NEXT
Tagged: #eliminar #el #primer #caracter #de #string #java
ADD COMMENT
Topic
Name
9+4 =