We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969b9f5 commit 1f633b4Copy full SHA for 1f633b4
1 file changed
src/sample/java/project/SampleJavaProject.java
@@ -56,10 +56,17 @@ public static void main(final String[] args) {
56
sjp.run();
57
}
58
59
+ /**
60
+ * Print the "Hello, world!" string.
61
+ */
62
+ public final void sayHello() {
63
+ System.out.printf("Hello, %s!%n", name);
64
+ }
65
+
66
@Override
67
public final void run() {
68
do {
- System.out.printf("Hello, %s!%n", name);
69
+ sayHello();
70
try {
71
Thread.sleep(PRINT_DELAY);
72
} catch (InterruptedException e) {
0 commit comments