I want to use String’s subsequence method in blackberry which is given in java API but not present in Blackberry API. Here is the method :
String.subSequence(int beginIndex, int endIndex)
I want to use that method so how should it be possible if I cant access that API. Can u please post the code/url with code/api in Blackberry which will perform same function like subsequence method.
Java SE’s
subSequenceis implemented in java.lang.String just because String was made to implementCharSequenceinterface. If you read the docs, it says:So in BlackBerry, as there’s no
CharSequenceinterface because it was introduced in Java 1.4, you can usesubstringinstead with identical result.