Create croup java code