Java Basic Teamwork