I'm sorry, but this is not a useful review of the asker's code. Sentences like “
It's better to avoid Java” and “
Rewrite your program in Haskell” misses the point of a
code review: to point things out things in the code that can could be improved (and
how, and
why). You actually have a few interesting links regarding the
why, but miss the first step: the
what. Language choice is not a valid “
what”. —
amon 3 mins ago