Alternate Java Impl

Wrote this a while back; figured it's worth the look.