For translation in java you must create for each class a file with the name of the class. For C++ you must create a header file with declarations and use the scope syntax.
Shouldnt be to hard to rewrite it. The main functions and memory allocations are a bit different, you should google for some tutorials like to
Learn C++.