e1.printStackTrace();
}
// Create handle to retrieve submissions
Subreddits subrs = new Subreddits(restClient, user);
ExtendedSubreddits extSubrs = new ExtendedSubreddits(subrs);
try {
// Retrieve some submissions!
//List<Subreddit> getsubreddits = subrs.get(SubredditsView.NEW, 36);
//System.out.println("Get subreddits, size received: " + getsubreddits.size());
// Other possibilities:
// subrs.get(SubredditType.NEW);
// subrs.get(SubredditType.POPULAR, 64);
// subrs.get(SubredditType.NEW, 22, "t1_29429");
// subrs.get(user, SubredditType.NEW);
// subrs.get(user, SubredditType.POPULAR, 33);
// subrs.get(user, SubredditType.MINE, 16);
// subrs.get(user, SubredditType.NEW, 22, "t1_29429");
List<Subreddit> searchsubreddits = extSubrs.search("abbot", 10);
System.out.println("Search subreddits, size received: " + searchsubreddits.size());
// Other possibilities:
// subrs.search("query");
// subrs.search("query", 64);