code java edited