/* * Favorites the specified tweet, returning true in case of success. * If error, returns false. */ public boolean doFav(Status tweet) { try { twitter.createFavorite(tweet.getId()); return true; } catch (Exception ex) { System.err.println("[ERROR] Can't favorite " + tweet.getId()); ex.printStackTrace(); return false; } }