Abstract: We propose an automatic Java code generation method that integrates UML class diagrams with large language models. First, we employ DOM4J parsing and FreeMarker templates to transform ...