Why is String template not available
I updated my JDK to JDK 23 and now get a weak warning for any String concatenations like System.out.print("The capital city of " + index + " is ");
saying I should use a String template, but when I apply the IDE quick fix to apply the template, the java.lang.StringTemplate
class doesn’t exist which I can confirm even after manually looking for the StringTemplate
in the JDK 23 library.