VOOZH about

URL: https://www.geeksforgeeks.org/scala/scala-string-substring-method-with-example/

⇱ Scala String substring() method with example - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Scala String substring() method with example

Last Updated : 23 Oct, 2019
The substring() method is utilized to find the sub-string from the stated String which starts from the index specified.
Method Definition: String substring(int beginIndex) Return Type: It returns the content from the given String Which starts from the index we specify.
Example: 1#
Output:
Geeks
Example: 2#
Output:
ks
Comment
Article Tags:

Explore