Here's what I think is an interesting take on the challenge:
- recusive solution
- certainly not idiomatic Java
- not at all efficient (might blow the stack if requirements were to change to print 100K elements)
- but it is functional
- and it is pure Java