Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get substring

// substring(int begin, int end)
String n = "hello there general kenobi";
System.out.println(n.substring(6, 11));
// -> "there"
 
PREVIOUS NEXT
Tagged: #java #substring
ADD COMMENT
Topic
Name
8+1 =