Since writing my original article on integrating with twitter using the twitter4j library, twitter has updated their api and the twitter4j library was subsequently updated accordingly. Here is the new code for using twitter4j version 3.0.x.