Revert "K-diff string match in Java"

This reverts commit ab43ea947dc59c18ba5539798674d617e9a79a66.
Revert "Revert "K-diff string match in Java""

This reverts commit e4f501c7cc0b3753627ba1817125b53783d13f7c.