add java interoperability.
Added a java version of the checker.