This brief code example checks to see whether user_to_check (a Twitter username as a String) is following the Twitter account twitter_username. The boolean is_user_following will be true if there is a follow.
The twitter object represents a twitter4j.Twitter class preconfigured with authentication details.