English 中文(简体)
黑莓中如何使用字符串次序列方法?
原标题:How to use String subsequence method in blackberry?
  • 时间:2012-05-23 10:41:51
  •  标签:
  • blackberry

我想在黑莓中使用字符串的子序列法,这是 Java API 中给出的,但黑莓 API 中没有显示。 方法如下:

String.subSequence(int beginIndex, int endIndex)

我想使用这种方法,所以如果我无法访问 API, 怎么可能。 u 请在黑莓中以代码/ api 发布代码/ URL, 该代码/ URL 将履行与子序列方法相同的功能 。

最佳回答

Java SE S subseconomics 在java. lang.lang. string中实施。 String仅仅因为字符串是为了执行 CharSsequence 接口。如果你读到 docs ,它写道:

An invocation of this method of the form str.subSequence(begin, end) behaves in exactly the same way as the invocation str.substring(begin, end) This method is defined so that the String class can implement the CharSequence interface.

所以在黑莓中, 因为没有 < code> CharSquence 接口, 因为它是在 Java 1. 4 中引入的, 您可以使用 < code> substring 而不是相同的结果 。

问题回答

暂无回答




相关问题
How does AlertListener work on Blackberry API 5.0?

Does the AlertListener interface works globally on all alerts on the blackberry device, or does it only work with alerts generated by your application? In other words, can I use this interface to ...

How to buffer audio in Blackberry?

I need to learn how to buffer audio stream from a remote server in Blackberry. There is a sample buffered playback app with Blackberry api but can you tell what url may I use to test the application?

Blackberry push notification implementation

How does one implement a push notification for a blackberry app? I heard that in order to do so I need to purchase a Blackberry Enterprise Server which costs me 1400 per year. Is this true? Where is ...

热门标签