"Calculate the sum of two numbers and return the result."
Java
"```java
int sum(int a, int b) {
return a + b;
}
```"
This translator converts natural language instructions into equivalent Java code snippets. It focuses on readability and adheres to Java syntax, making it ideal for quickly generating Java functions from simple descriptions.