@@ -159,6 +159,18 @@ <h2 id="_quickstart">1. quickstart</h2>
159159< div class ="paragraph ">
160160< p > The core of this project is quite abstract and more or less theoretical. But here are some handy things in this.</ p >
161161</ div >
162+ < div class ="admonitionblock note ">
163+ < table >
164+ < tr >
165+ < td class ="icon ">
166+ < div class ="title "> Note</ div >
167+ </ td >
168+ < td class ="content ">
169+ examples in this section use java 25’s < a href ="https://openjdk.org/jeps/512 "> compact source files</ a >
170+ </ td >
171+ </ tr >
172+ </ table >
173+ </ div >
162174< div class ="sect2 ">
163175< h3 id ="_statistics "> 1.1. statistics</ h3 >
164176< div class ="paragraph ">
@@ -174,7 +186,7 @@ <h3 id="_statistics">1.1. statistics</h3>
174186 .build();
175187
176188 windowed.accept(< span class ="integer "> 100</ span > , < span class ="integer "> 101</ span > , < span class ="integer "> 102</ span > );
177- < span class =" predefined-type " > System </ span > .out .println(windowed.get()); < span class ="comment "> // prints 101.0 ± 0.8</ span >
189+ IO .println(windowed.get()); < span class ="comment "> // prints 101.0 ± 0.8</ span >
178190}</ code > </ pre >
179191</ div >
180192</ div >
@@ -189,7 +201,7 @@ <h3 id="_date_parsing">1.2. date parsing</h3>
189201< pre class ="CodeRay highlight "> < code data-lang ="java "> < span class ="keyword "> import</ span > < span class ="include "> org.meeuw.time.parser.DynamicDateTime</ span > ;
190202< span class ="type "> void</ span > main() {
191203 DynamicDateTime dynamicDateTime = < span class ="keyword "> new</ span > DynamicDateTime();
192- < span class =" predefined-type " > System </ span > .out .println(
204+ IO .println(
193205 < span class ="comment "> // Prints the date 5 days from now</ span >
194206 dynamicDateTime.apply(< span class ="string "> < span class ="delimiter "> "</ span > < span class ="content "> today + 5 days</ span > < span class ="delimiter "> "</ span > </ span > ).toLocalDate()
195207 );
@@ -214,7 +226,7 @@ <h3 id="_algebraic_structures">1.3. algebraic structures</h3>
214226 < span class ="comment "> // Quaternions over rational numbers</ span >
215227 < span class ="type "> var</ span > a = H_Q.fromString(< span class ="string "> < span class ="delimiter "> "</ span > < span class ="content "> 1 + 2i + 3j + 4k</ span > < span class ="delimiter "> "</ span > </ span > );
216228 < span class ="type "> var</ span > b = H_Q.fromString(< span class ="string "> < span class ="delimiter "> "</ span > < span class ="content "> 2 - 2i + 3j - 4k</ span > < span class ="delimiter "> "</ span > </ span > );
217- < span class =" predefined-type " > System </ span > .out .println(a.times(b)); < span class ="comment "> // prints 13 - 22i + 9j + 16k</ span >
229+ IO .println(a.times(b)); < span class ="comment "> // prints 13 - 22i + 9j + 16k</ span >
218230}</ code > </ pre >
219231</ div >
220232</ div >
0 commit comments