test fixes

This commit is contained in:
Dhanji R. Prasanna
2025-11-05 14:11:59 +11:00
parent fa38439a06
commit 26e26cf367
6 changed files with 124 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
public class Example {
private String name;
public Example(String name) {
this.name = name;
}
public void greet() {
System.out.println("Hello, " + name);
}
public static void main(String[] args) {
Example example = new Example("Java");
example.greet();
}
}