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