Feature Overview
This feature converts a template string into concatenated strings.
This feature converts a template string into concatenated strings.
None
public class TemplateStringDemo {
public static String a = 'a';
public static String b = 'b';
public static String c = `${a}-${b}`;
public static String text = `
This is a free style text.
You can add ${c} here.
Try it.
`;
}
public class TemplateStringDemo {
public static String a = 'a';
public static String b = 'b';
public static String c = '' + a + '-' + b + '';
public static String text = '\n This is a free style text.\n You can add ' + c + ' here.\n Try it.\n ';
}
Contribute on Github! Edit this section.