/JAVA-Eager-vs-Lazy

This is a test of eager and lazy evaluation on java.

Primary LanguageJava

JAVA-Eager-vs-Lazy

This is a test of eager and lazy evaluation on java.

FIRST LINE ON MAIN
computed EAGER
CREATED ARRAY "DATA" of type: EAGER


--------- CALLING VARIABLES ---------
eagerComp: Executed method compute() of type: EAGER

calling lazyComp: 
computed LAZY
Executed method compute() of type: LAZY

calling eagerData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

calling lazyData: 
CREATED ARRAY "DATA" of type: LAZY
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]