This commit is contained in:
Paul Gauthier 2024-11-27 07:18:21 -08:00
parent f5100626a8
commit 8fb23b414c
4 changed files with 0 additions and 0 deletions

16
tests/fixtures/languages/java/test.java vendored Normal file
View file

@ -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"));
}
}