Converts C++ codes to Java