divide crack_code into java and c++