Hi all,
i have a problem in string manipulation.
i want to cut the part of the string for example
ramesh(1001)
i want to cut the number 1001
how to do this. please help me on this.....
Printable View
Hi all,
i have a problem in string manipulation.
i want to cut the part of the string for example
ramesh(1001)
i want to cut the number 1001
how to do this. please help me on this.....
You are not very clear in what you actually want to do, give some more information about the string and what you want to cut from it.
Hannes
hi,
"ramesh(1001)" is the string and i want to cut only "1001" from it.
i hope this is clear to u
regards,
harsha
In the java.lang.String class there is a method substring( int beginIndex, int endIndex ). You can use this method for your string :String myString = "ramesh(1001)".substring( 7, 11).
Then the String myString contains "1001"
Hope this helps,
Hannes
hi,
but i am reading the string from another page. so the string value changes every time.
regards
shreeharsha
You say that the string value changes every time, but is there always a substring "1001" present in the string?
Hannes
hi,
i want only the part within the bracket that is the substring 1001. the string changes whenever i read from another page.
regards,
harsha
Hi,
thank you very much. its working. can u just brief me how it works.
regards,
harsha
Hi,
where can i get the API Documentation. please suggest me.
regards,
harsha
Here it is; you're not telling me that until now you have been programming in Java without this documentation are you?
kind regards,
Jos