mirror of
https://github.com/Aider-AI/aider.git
synced 2026-06-11 15:37:23 +02:00
rename
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
public interface Greeting {
|
||||
String greet(String name);
|
||||
}
|
||||
|
||||
public class Test implements Greeting {
|
||||
private String prefix = "Hello";
|
||||
|
||||
public String greet(String name) {
|
||||
return prefix + ", " + name + "!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Test greeter = new Test();
|
||||
System.out.println(greeter.greet("World"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user