Java code for Twitter project.