Add @boboman13's Java implementation