public static void main(String[] args) {
        if (args.length < 1) {
            System.out.println("Usage: java twitter4j.examples.list.GetUserListSubscribers [list id]");
            System.exit(-1);
        }
        try {
            Twitter twitter = new TwitterFactory().getInstance();
            long cursor = -1;
            PagableResponseList<User> usres;
            do {
                usres = twitter.getUserListSubscribers(Integer.parseInt(args[0]), cursor);
                for (User list : usres) {
                    System.out.println("@" + list.getScreenName());
                }
            } while ((cursor = usres.getNextCursor()) != 0);
            System.exit(0);
        } catch (TwitterException te) {
            te.printStackTrace();
            System.out.println("Failed to get list subscribers: " + te.getMessage());
            System.exit(-1);
        }
    }
public static void main ( String [ ] args ) { if ( args . length < 1 ) { System . out . println ( "Usage: java twitter4j.examples.list.GetUserListSubscribers [list id]" ) ; System . exit ( - 1 ) ; } try { Twitter twitter = new TwitterFactory ( ) . getInstance ( ) ; long cursor = - 1 ; PagableResponseList < User > usres ; do { usres = twitter . getUserListSubscribers ( Integer . parseInt ( args [ 0 ] ) , cursor ) ; for ( User list : usres ) { System . out . println ( "@" + list . getScreenName ( ) ) ; } } while ( ( cursor = usres . getNextCursor ( ) ) != 0 ) ; System . exit ( 0 ) ; } catch ( TwitterException te ) { te . printStackTrace ( ) ; System . out . println ( "Failed to get list subscribers: " + te . getMessage ( ) ) ; System . exit ( - 1 ) ; } }
Usage: java twitter4j.examples.list.GetUserListSubscribers [list id]

@param args message