Java hw