Skip to content

Commit d212c4e

Browse files
authored
Fix formatting of oldCode in compact-source-files.json
1 parent 0c78f74 commit d212c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/language/compact-source-files.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"modernLabel": "Java 25",
1010
"oldApproach": "Main Class Ceremony",
1111
"modernApproach": "void main()",
12-
"oldCode": "public class HelloWorld {\n public static void main(\n String[] args) {\n System.out.println(\n \"Hello, World!\");\n }\n}",
12+
"oldCode": "public class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\n \"Hello, World!\");\n }\n}",
1313
"modernCode": "void main() {\n IO.println(\"Hello, World!\");\n}",
1414
"summary": "Write a complete program without class declaration or public static void main.",
1515
"explanation": "Compact source files remove the ceremony of class declarations and the main method signature for simple programs. Combined with implicit import of java.io.IO, even println is available directly.",

0 commit comments

Comments
 (0)