test fixes
This commit is contained in:
16
examples/test_code/Example.java
Normal file
16
examples/test_code/Example.java
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user