Jump to content

Getting a substring


MVROD
 Share

Recommended Posts

Hi !

Does anybody knows how getting a substring providing the start and finish position ?

Like string.substring(0,10) in JAVA?

I'm not searching for a specific string, I just would like to know the string which is between some positions.

Example:

String word = "Hello Earth"

word.substring(7,9) = Ear

Can anybody help me how to do this ?

Edited by MVROD
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...