Hello everybody

I'm in need for implementation of Hilditch algorithm, I tried to implement it by myself but I've got uncorrect results. I found an implementation in the Internet but using C language, and I need in java language. I failed in transfer the code to java, could any one help me on that please?

Here is the code I found in C.
http://cis.k.hosei.ac.jp/~wakahara/Hilditch.c

Thanks in advance for any help