Processing Forum
The operator == is undefined for the argument types(s) int, null
5. In the Processing folder, remove or renamemodes/java/libraries/serial/library/linux32/librxtxSerial.so
; it’s an x86 binary, and will fail
Twitter myTwitter;
void setup() {
myTwitter = new Twitter("yourTwitterUserName", "yourTwitterPassword");
try {
Query query = new Query("sandwich");
query.setRpp(100);
QueryResult result = myTwitter.search(query);
ArrayList tweets = (ArrayList) result.getTweets();
for (int i = 0; i < tweets.size(); i++) {
Tweet t = (Tweet) tweets.get(i);
String user = t.getFromUser();
String msg = t.getText();
Date d = t.getCreatedAt();
println("Tweet by " + user + " at " + d + ": " + msg);
};
}
catch (TwitterException te) {
println("Couldn't connect: " + te);
};
};
void draw() {
};