Am using Twitter4j library to read the twitter text/tweet, more on info about it is here
Now I want to find if the tweet contains "?" in it. Am reading the text using
status.getText()
It says it returns a string, hence I tried using string.contains but somehow it doesn't work just for the "?". If I use contains to find "http" in it, it returns me true but for this "?" it doesn't always. Sample tweet is as below
I'll hit you up when I get the ps4 though ??
Someone please help me on this.
怎么样string.indexOf('?') >= 0
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.