Skip to content

Instantly share code, notes, and snippets.

@gn-spawn
Created January 10, 2017 09:44
Show Gist options
  • Save gn-spawn/1f9178b31f50971042f7b1aef555b5df to your computer and use it in GitHub Desktop.
Save gn-spawn/1f9178b31f50971042f7b1aef555b5df to your computer and use it in GitHub Desktop.
ArrayList<String> tweets = mashup.getTweets("スポーンメモ", "gn_spawn");
ArrayList<String> diff = new ArrayList<String>(tweets);
diff.removeAll(cache);
cache = tweets;
for (String tw : diff) {
System.out.println(tw + "が追加されました");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment