Java Old Version [better] -

Improvements: