code: public static void main(String[] args) {
          try {
              Twitter twitter = new TwitterFactory().getInstance();
              List<Status> statuses = twitter.getFavorites();
              for (Status status : statuses) {
                  System.out.println("@" + status.getUser().getScreenName() + " - " + status.getText());
              }
              System.out.println("done.");
              System.exit(0);
          } catch (TwitterException te) {
              te.printStackTrace();
              System.out.println("Failed to get favorites: " + te.getMessage());
              System.exit(-1);
          }
      }
docs: Usage: java twitter4j.examples.favorite.GetFavorites
  
  @param args message