When I added the Golden Ratio (= 0.5 * (1.0 + Math.sqrt(5.0))) as a third constant, I got the three constants printed in different orders:jshell> PrintConstants.main()
27.1828
31.4159
Printed
jshell> PrintConstants.main()
31.4159
Printed
27.1828
jshell> PrintConstants.main()
Printed
31.4159
27.1828
jshell> PrintConstants.main()
31.41592653589793
16.18033988749895
27.18281828459045
Printed
jshell> PrintConstants.main()
31.41592653589793
27.18281828459045
16.18033988749895
Printed
jshell> PrintConstants.main()
16.18033988749895
31.41592653589793
27.18281828459045
Printed
jshell> PrintConstants.main()
31.41592653589793
27.18281828459045
Printed
16.18033988749895
jshell> PrintConstants.main()
31.41592653589793
27.18281828459045
Printed
16.18033988749895 [etc.]
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
Yes, thank youMike Simmons wrote:Thanks for posting the book's explanation, . . .
I haven't seen null printed at all.Willam stock wrote:Answer: It prints null 10 times.
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|