Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 16
Registered: ‎04-08-2011
My Device: Torch 9800
My Carrier: Vodaphone
Accepted Solution

Editing a string

Hey all,


If I retrieve the following string: 00123456

How do I get rid of the first two digits (00) every time.


Thanks in advance



Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Editing a string

by using substring
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Editing a string


String fullString = "001234";
String resultString = fullString.substring(2);