Skip to content

Instantly share code, notes, and snippets.

@yusuke
Created October 7, 2014 15:22
Show Gist options
  • Select an option

  • Save yusuke/3ce95934b44d50c59773 to your computer and use it in GitHub Desktop.

Select an option

Save yusuke/3ce95934b44d50c59773 to your computer and use it in GitHub Desktop.
package twitter4j;
import java.util.stream.IntStream;
public class Cpu {
public static void main(String[] args) throws TwitterException {
Twitter twitter = TwitterFactory.getSingleton();
IntStream.range('a', 'Z'+1).forEach(e-> {
try {
twitter.updateStatus(String.format("@syobochim %sカップ", (char) e));
} catch (TwitterException e1) {
e1.printStackTrace();
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment