File tree Expand file tree Collapse file tree
subjects/java/checkpoints/singleton-blueprint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11public class ExerciseRunner {
22 public static void main (String [] args ) {
3- System .out .println (Singleton .get ???().whoAreYou ());
3+ System .out .println (Singleton .get ???().ShowMessage ());
44 }
55}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class Singleton {
1616 public Singleton get???() {
1717 }
1818
19- public String whoAreYou () {
19+ public String ShowMessage () {
2020 return " Hello, I am a singleton!"
2121 }
2222}
@@ -29,7 +29,7 @@ Here is a possible `ExerciseRunner.java` to test your class:
2929``` java
3030public class ExerciseRunner {
3131 public static void main (String [] args ) {
32- System . out. println(Singleton . get??? (). whoAreYou ());
32+ System . out. println(Singleton . get??? (). ShowMessage ());
3333 }
3434}
3535```
You can’t perform that action at this time.
0 commit comments