Java Length Project