Index
- Language feauteres
- String Template
- record pattern
- pattern matching for switch
- Libraries improvement
- Virtual threads
- Sequenced collections
- Performace improvement
- ZGC
String Template[Preview]
Index
- Why Introduced
- syntax
- Usage Example
There are three components to a template expression:
- A processor
- STR Template Processor
- A template which contains the data with the embedded expressions
- e,g, “\{var_name}“
- A dot (.) character
String interpolationUsingSTRProcessor(String feelsLike, String temperature, String unit) {
return STR
. "Today's weather is \{ feelsLike }, with a temperature of \{ temperature } degrees \{ unit }" ;
}
Record pattern
Index
- Why Introduced
- syntax
- Usage Example
Pattern matching for switch
Index
- Why Introduced
- syntax
- Usage Example
Virtual threads
Index
- Why Introduced
- syntax
- Usage Example
Sequenced collections
Index
- Why Introduced
- syntax
- Usage Example