Files
javademos/java28-features/output/07-lazy-constants.txt
T

8 lines
203 B
Plaintext

$ java --enable-preview src/LazyDemo.java
before first get(), computations = 0
loaded after 1000 concurrent get() calls, computations = 1
size without computing anything: 5
computing element 3
sq9
sq9