code: public static void main(String[] args) {
          try {
              Twitter twitter = new TwitterFactory().getInstance();
              List<SavedSearch> savedSearches = twitter.getSavedSearches();
              for (SavedSearch savedSearch : savedSearches) {
                  System.out.println("[name:" + savedSearch.getName() + " query:" + savedSearch.getQuery() + " id:"
                          + savedSearch.getId() + "]");
              }
              System.exit(0);
          } catch (TwitterException te) {
              te.printStackTrace();
              System.out.println("Failed to retrieve saved searches: " + te.getMessage());
              System.exit(-1);
          }
      }
docs: Usage: java twitter4j.examples.savedsearches.GetSavedSearches
  
  @param args message