我需要在字符串中获取带有符号« »的单词:
String phrase = "«User» of «the» application:";
String words[] = phrase.indexOf("«") + phrase.indexOf("»")
words[0] = "User";
words[1] = "the";
问题是,该解决方案只获得第一个词:“用户”,我需要所有的词框......
我怎样才能做到这一点?
我需要在字符串中获取带有符号« »的单词:
String phrase = "«User» of «the» application:";
String words[] = phrase.indexOf("«") + phrase.indexOf("»")
words[0] = "User";
words[1] = "the";
问题是,该解决方案只获得第一个词:“用户”,我需要所有的词框......
我怎样才能做到这一点?