System.out.println(
"Usage: java twitter4j.examples.AsyncUpdate ID Password text");
System.exit( -1);
}
AsyncTwitter twitter = new AsyncTwitter(args[0], args[1]);
twitter.updateStatusAsync(args[2], new TwitterAdapter() {
@Override public void updated(Status status) {
System.out.println("Successfully updated the status to [" +
status.getText() + "].");
synchronized (lock) {
lock.notify();