finish greate group java code