Java hw #2