@@ -81,31 +81,31 @@ public String writePoemTextBlock(String author) {
81
81
.concat (author );
82
82
}
83
83
84
- /**
85
- * Using String template: JEP 430: String Templates (Preview)
86
- * From Java 21
87
- *
88
- * @param author author from the poem.
89
- * @return poem.
90
- */
91
- public String writePoemStringTemplate (String author ) {
92
- return STR ."""
93
- Over hill, over dale,
94
- Thorough bush, thorough brier,
95
- Over park, over pale,
96
- Thorough flood, thorough fire!
97
- I do wander everywhere,
98
- Swifter than the moon's sphere;
99
- And I serve the Fairy Queen,
100
- To dew her orbs upon the green;
101
- The cowslips tall her pensioners be;
102
- In their gold coats spots you see;
103
- Those be rubies, fairy favours;
104
- In those freckles live their savours;
105
- I must go seek some dewdrops here,
106
- And hang a pearl in every cowslip's ear.
107
- - \{author }
108
- """ ;
109
- }
84
+ // /**
85
+ // * Using String template: JEP 430: String Templates (Preview)
86
+ // * From Java 21
87
+ // *
88
+ // * @param author author from the poem.
89
+ // * @return poem.
90
+ // */
91
+ // public String writePoemStringTemplate(String author) {
92
+ // return STR."""
93
+ // Over hill, over dale,
94
+ // Thorough bush, thorough brier,
95
+ // Over park, over pale,
96
+ // Thorough flood, thorough fire!
97
+ // I do wander everywhere,
98
+ // Swifter than the moon's sphere;
99
+ // And I serve the Fairy Queen,
100
+ // To dew her orbs upon the green;
101
+ // The cowslips tall her pensioners be;
102
+ // In their gold coats spots you see;
103
+ // Those be rubies, fairy favours;
104
+ // In those freckles live their savours;
105
+ // I must go seek some dewdrops here,
106
+ // And hang a pearl in every cowslip's ear.
107
+ // - \{author}
108
+ // """;
109
+ // }
110
110
111
111
}
0 commit comments