Answers for "get the substring in java"

1

java get substring

// substring(int begin, int end)
String n = "hello there general kenobi";
System.out.println(n.substring(6, 11));
// -> "there"
Posted by: Guest on March-14-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language