System.out.println("Usage: java twitter4j.examples.friendship.DestroyFriendship [screen name]");
System.exit(-1);
}
try {
Twitter twitter = new TwitterFactory().getInstance();
twitter.destroyFriendship(args[0]);
System.out.println("Successfully unfollowed [" + args[0] + "].");
System.exit(0);
} catch (TwitterException te) {
te.printStackTrace();
System.out.println("Failed to unfollow: " + te.getMessage());