File tree 3 files changed +19
-0
lines changed
src/main/java/com/ibrahimatay
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ This repository contains Java examples that are designed to track and document t
43
43
* [ Java 14] ( java-14/ ) (March, 2020)
44
44
* [ JEP 361] ( java-14/src/main/java/com/ibrahimatay/JEP361SwitchExpressions.java ) : Switch Expressions
45
45
* [ JEP 359] ( java-14/src/main/java/com/ibrahimatay/JEP359Records.java ) : Records (Preview)
46
+ * [ JEP 369] ( java-14/src/main/java/com/ibrahimatay/JEP368TextBlocks.java ) : Text Blocks (Second Preview)
46
47
47
48
* [ Java 12] ( java-12/ ) (March, 2019)
48
49
* API Improvements
Original file line number Diff line number Diff line change 23
23
<artifactId >maven-compiler-plugin</artifactId >
24
24
<configuration >
25
25
<compilerArgs >--enable-preview</compilerArgs >
26
+ <source >15</source >
27
+ <target >15</target >
26
28
</configuration >
27
29
</plugin >
28
30
</plugins >
Original file line number Diff line number Diff line change
1
+ package com .ibrahimatay ;
2
+
3
+ public class JEP368TextBlocks {
4
+ public static void main (String [] args ) {
5
+ // JEP 368: Text Blocks (Second Preview)
6
+ // https://openjdk.org/jeps/368
7
+
8
+ String json = """
9
+ {
10
+ "name": "Java",
11
+ "version": 14
12
+ }
13
+ """ ;
14
+ System .out .println (json );
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments